central analyzer doesn't use our mirror, and maven central is often overloaded
See original GitHub issueWe have configured the OWASP dependency check to run as part of our build process with maven, but it often fails the build due to not being able to contact maven central.
It seems to contact maven central even if we have our own nexus server configured in a <repositories> block in the pom file.
The relevant part of the log is:
[ERROR] Could not connect to Central search. Analysis failed.
java.io.IOException: Finally failed connecting to Central search. Giving up after 5 tries.
at org.owasp.dependencycheck.analyzer.CentralAnalyzer.fetchMavenArtifacts (CentralAnalyzer.java:288)
at org.owasp.dependencycheck.analyzer.CentralAnalyzer.analyzeDependency (CentralAnalyzer.java:198)
at org.owasp.dependencycheck.analyzer.AbstractAnalyzer.analyze (AbstractAnalyzer.java:136)
at org.owasp.dependencycheck.AnalysisTask.call (AnalysisTask.java:88)
at org.owasp.dependencycheck.AnalysisTask.call (AnalysisTask.java:37)
at java.util.concurrent.FutureTask.run (FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:624)
at java.lang.Thread.run (Thread.java:748)
Caused by: java.io.IOException: Could not connect to MavenCentral (503): Service Unavailable: Back-end server is at capacity
at org.owasp.dependencycheck.data.central.CentralSearch.searchSha1 (CentralSearch.java:194)
at org.owasp.dependencycheck.analyzer.CentralAnalyzer.fetchMavenArtifacts (CentralAnalyzer.java:266)
at org.owasp.dependencycheck.analyzer.CentralAnalyzer.analyzeDependency (CentralAnalyzer.java:198)
at org.owasp.dependencycheck.analyzer.AbstractAnalyzer.analyze (AbstractAnalyzer.java:136)
at org.owasp.dependencycheck.AnalysisTask.call (AnalysisTask.java:88)
at org.owasp.dependencycheck.AnalysisTask.call (AnalysisTask.java:37)
at java.util.concurrent.FutureTask.run (FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:624)
at java.lang.Thread.run (Thread.java:748)
Issue Analytics
- State:
- Created 5 years ago
- Reactions:7
- Comments:21 (11 by maintainers)
Top Results From Across the Web
Guide to Mirror Settings - Apache Maven
A list of known mirrors is available in the Repository Metadata. These mirrors may not have the same contents and we don't support...
Read more >Peculiar Maven Repository Resolution Problem - Stack Overflow
The first thing is: I am declaring a repository in the pom.xml as follows: If you use a repository manager always define the...
Read more >Changelog and Migration Guide - Detekt
You can find the changes for each version using the dropdown menu on the top bar. Documentation for the upcoming version (next) can...
Read more >Learning the Basics - Gradle User Manual
For the use case of overriding remote artifacts with local ones consider using an Ivy or Maven repository instead whose URL points to...
Read more >Vulnerabilities for Maven artifacts not hosted on Maven Central
Security advisories for Maven packages/artifacts not hosted on Maven Central can be added to gemnasium-db, the vulnerability DB. Dependency ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@jeremylong Have you recently looked into Artifactory’s useability from DepCheck? If not I’m offering to take a look. Their issue-tracker indicates that hash-search for artifacts is implemented in their REST API since end of 2010 (https://www.jfrog.com/jira/browse/RTFACT-3676).
Thank you, it would be very interesting to integrate with artifactory (we use it as internal repository) If you see another service similar to maven central, please, let me know