Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webdriver.chrome.driver error when attempting to generate licenses #7

Open
KhalfaouiAnis opened this issue Mar 5, 2024 · 1 comment

Comments

@KhalfaouiAnis
Copy link

When i run the following command mvn io.github.coolbeevip:license-maven-plugin:1.16.0:dependency-license-export -Ddeep=1 -Dlicense=true, i get thr following error:

Execution default-cli of goal io.github.coolbeevip:license-maven-plugin:1.16.0:dependency-license-export failed: The path to the driver executable must be set by the webdriver.chrome.driver system property.

for more information, see https://github.com/SeleniumHQ/selenium/wiki/ChromeDriver.

The latest version can be downloaded from http://chromedriver.storage.googleapis.com/index.html.

@coolbeevip
Copy link
Owner

coolbeevip commented Mar 5, 2024

When i run the following command mvn io.github.coolbeevip:license-maven-plugin:1.16.0:dependency-license-export -Ddeep=1 -Dlicense=true, i get thr following error:

Execution default-cli of goal io.github.coolbeevip:license-maven-plugin:1.16.0:dependency-license-export failed: The path to the driver executable must be set by the webdriver.chrome.driver system property.

for more information, see https://github.com/SeleniumHQ/selenium/wiki/ChromeDriver.

The latest version can be downloaded from http://chromedriver.storage.googleapis.com/index.html.

I appreciate the reminder, I had forgotten to include this part in my writing.

You must download and install ChromeDriver manually to match your local Chrome browser version. Verify the successful installation by running the following command:

$ chromedriver --version
ChromeDriver 92.0.4515.107 (87a818b10553a07434ea9e2b6dccf3cbe7895134-refs/branch-heads/4515@{#1634})

The analyzed LICENSE information will be stored in the data file ~/.m2/mvnrepository.mapdb, and when analyzed again, it will prioritize extracting LICENSE information from the data file. You can also download the author's mvnrepository.mapdb file and place it in the local ~/.m2/ directory. This data file contains some commonly used dependency information by the author.

BTW: It will try to crawl https://search.maven.org/artifact/ data to obtain License information. Please be sure to use it with caution.

You can see the license parameter's effect in this video https://youtu.be/hhC0m-OZgfM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants