Skip to content

[RFE]: Possibility to configure URL to "Maven central" #7686

@alixwar

Description

@alixwar

Is your feature request related to a problem? Please describe.
This is the issue that I'm facing: #5291

In my case (using version 12.1.0 of the gradle plugin):

Caused by: java.io.IOException: https://search.maven.org/solrsearch/select?q=1:8110ba5ec44be61aa96f8bd8d1c57eed0efdb7b9&wt=xml - Server status: 502 - Server reason: Bad Gateway
	at org.owasp.dependencycheck.utils.Downloader.fetchAndHandle(Downloader.java:724)
	at org.owasp.dependencycheck.utils.Downloader.fetchAndHandle(Downloader.java:685)
	at org.owasp.dependencycheck.data.central.CentralSearch.searchSha1(CentralSearch.java:162)
	at org.owasp.dependencycheck.analyzer.CentralAnalyzer.fetchMavenArtifacts(CentralAnalyzer.java:339)
	... 8 more

...

An error occurred while analyzing '/Users/xxxxx/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-scripting-compiler-embeddable/2.1.20/efd094224781affbc9aa8c60c5cae926517e028f/kotlin-scripting-compiler-embeddable-2.1.20.jar' (Central Analyzer).
Could not connect to Central search. Analysis failed.
java.io.IOException: Finally failed connecting to Central search. Giving up after 7 tries.

Describe the solution you'd like
I'd like to be able to configure the plugin to use my own mirrored URL to Maven Central so that I don't have to rely on uptime for this public repository (bonus: less latency).

Describe alternatives you've considered
No alternatives

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions