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

override central.content.url and analyzer.central.retry.count #6636

Open
tadlakha9 opened this issue May 1, 2024 · 6 comments
Open

override central.content.url and analyzer.central.retry.count #6636

tadlakha9 opened this issue May 1, 2024 · 6 comments
Labels

Comments

@tadlakha9
Copy link

tadlakha9 commented May 1, 2024

Is there any way we can override the central.content.url and analyzer.central.retry.count variables.

Didn't find these variables in https://jeremylong.github.io/DependencyCheck/dependency-check-gradle/configuration-aggregate.html

@jeremylong
Copy link
Owner

You should be able to override them with -Danalyzer.central.retry.count=1.

@jeremylong
Copy link
Owner

not sure you can actually use a different central.content.url though... You may have to use the nexus analyzer instead.

@tadlakha9
Copy link
Author

we would like to point to 'https://repo1.maven.org/maven2/' instead of default 'https://search.maven.org/' while executing the dependencyCheckAggregate task. To use the nexus analyzer it should be pro version right?

@jeremylong
Copy link
Owner

Not sure if https://repo1.maven.org/maven2/ has the same API endpoints as search.maven.org. Regarding nexus - I'm not sure, I didn't right the integration and I haven't tested it. it might work with the free version.

@tadlakha9
Copy link
Author

i have tried updating the repository url from 'https://search.maven.org/' to 'https://repo1.maven.org/maven2/' while executing the dependencyCheckAggregate task as dependencyCheckAggregate -Dcentral.content.url=http://testing but still it is reaching the https://search.maven.org/, any other way to update the repository url.

@aikebah
Copy link
Collaborator

aikebah commented May 15, 2024

@tadlakha9 The central.content.url is the base URL for the central search API to deliver content pointed to by a file path as obtained from central search search-by-sha API. It should not be exchanged for the base URL for maven central repository itself.

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

3 participants