externalized central search query so future changes can be handled via a properties change - issue #978

This commit is contained in:
Jeremy Long
2017-11-14 06:37:41 -05:00
parent 49d14d1272
commit dea9fa1145
4 changed files with 30 additions and 7 deletions

View File

@@ -72,6 +72,9 @@ analyzer.nexus.proxy=true
# the URL for searching search.maven.org for SHA-1 and whether it's enabled
analyzer.central.enabled=true
analyzer.central.url=https://search.maven.org/solrsearch/select
# Note - the central query is used in a String.format(query, url, sha1)).
# As such, it must have two %s and any other % must be escapped by doubling it
analyzer.central.query=%s?q=1:%%22%s%%22&wt=xml
# the URL for searching api.nodesecurity.io
analyzer.nsp.url=https://api.nodesecurity.io/check