mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-18 23:34:15 +01:00
added nexus configuration options
Former-commit-id: a886b4099635bc272b6a51dff687b584870bcc45
This commit is contained in:
@@ -190,6 +190,18 @@ public class DependencyCheckMojo extends AbstractMojo implements MavenMultiPageR
|
|||||||
@SuppressWarnings({"CanBeFinal", "FieldCanBeLocal"})
|
@SuppressWarnings({"CanBeFinal", "FieldCanBeLocal"})
|
||||||
@Parameter(property = "showSummary", defaultValue = "true", required = false)
|
@Parameter(property = "showSummary", defaultValue = "true", required = false)
|
||||||
private boolean showSummary = true;
|
private boolean showSummary = true;
|
||||||
|
/**
|
||||||
|
* Whether or not the Nexus Analyzer is enabled.
|
||||||
|
*/
|
||||||
|
@SuppressWarnings({"CanBeFinal", "FieldCanBeLocal"})
|
||||||
|
@Parameter(property = "nexusAnalyzerEnabled", defaultValue = "true", required = false)
|
||||||
|
private boolean nexusAnalyzerEnabled = true;
|
||||||
|
/**
|
||||||
|
* Whether or not the Nexus Analyzer is enabled.
|
||||||
|
*/
|
||||||
|
@SuppressWarnings({"CanBeFinal", "FieldCanBeLocal"})
|
||||||
|
@Parameter(property = "nexusUrl", defaultValue = "", required = false)
|
||||||
|
private String nexusUrl;
|
||||||
// </editor-fold>
|
// </editor-fold>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -674,6 +686,10 @@ public class DependencyCheckMojo extends AbstractMojo implements MavenMultiPageR
|
|||||||
if (suppressionFile != null && !suppressionFile.isEmpty()) {
|
if (suppressionFile != null && !suppressionFile.isEmpty()) {
|
||||||
Settings.setString(Settings.KEYS.SUPPRESSION_FILE, suppressionFile);
|
Settings.setString(Settings.KEYS.SUPPRESSION_FILE, suppressionFile);
|
||||||
}
|
}
|
||||||
|
Settings.setBoolean(Settings.KEYS.ANALYZER_NEXUS_ENABLED, nexusAnalyzerEnabled);
|
||||||
|
if (nexusUrl != null && !nexusUrl.isEmpty()) {
|
||||||
|
Settings.setString(Settings.KEYS.ANALYZER_NEXUS_URL, nexusUrl);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user