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

stops working once adding an NVD API key #6791

Closed
mirabilos opened this issue Jul 3, 2024 · 6 comments
Closed

stops working once adding an NVD API key #6791

mirabilos opened this issue Jul 3, 2024 · 6 comments
Labels

Comments

@mirabilos
Copy link

Describe the bug
My employer has recently acquired an NVD API key, and I wanted to use it today.

So I did mvn -DnvdApiKey=… clean install in a test project, to the effect of it now just hanging:

[…]
[INFO] --- dependency-check:9.2.0:aggregate (owasp-check) @ hispring ---
[INFO] Checking for updates

Version of dependency-check used
The problem occurs using version 9.2.0 of the Maven plugin

Log file
There’s no log file under target/

To Reproduce
See above.

Expected behavior
See above.

Additional context
%

@mirabilos mirabilos added the bug label Jul 3, 2024
@linsomniac
Copy link

There are capacity problems with the NVD server requiring many retries (we've had jobs running 6 hours and having to kill them), see #6758 , could that be related? I know in that thread they have recommended upgrading to 10.0.1, which may also be worth trying.

@chadlwilson
Copy link
Contributor

You must use v10. No versions of v9 will work with the current NVD API.

If you run with debug enabled you will see the real errors that are affecting you.

See #6746 or the release notes or the many other duplicate issues.

@mirabilos
Copy link
Author

mirabilos commented Jul 3, 2024 via email

@mirabilos
Copy link
Author

mirabilos commented Jul 3, 2024 via email

@chadlwilson
Copy link
Contributor

That's more of a Maven question than anything to do with ODC or its plugins, but IIRC that's not what MAVEN_OPTS is for. Perhaps you can just test it?

And preferably close this issue to help the project clean up, given it is a duplicate.

@mirabilos
Copy link
Author

(FTR, adding to MAVEN_OPTS seems to work, and upgrading to 10.x makes it work again as well, so the failure was unrelated to adding the API key.)

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

No branches or pull requests

4 participants