Updated to support suppression file configuration

Former-commit-id: 77c9cfcc307a682dc3786957b88e24afe9f7e33e
This commit is contained in:
Jeremy Long
2013-11-30 18:17:58 -05:00
parent 6596cb014f
commit 36dd7269e2
2 changed files with 11 additions and 1 deletions

View File

@@ -178,8 +178,14 @@ public class DependencyCheckMojo extends AbstractMojo implements MavenMultiPageR
@SuppressWarnings("CanBeFinal")
@Parameter(property = "connectionTimeout", defaultValue = "", required = false)
private String connectionTimeout = null;
/**
* The Connection Timeout.
*/
@SuppressWarnings("CanBeFinal")
@Parameter(property = "suppressionFile", defaultValue = "", required = false)
private String suppressionFile = null;
// </editor-fold>
/**
* Executes the Dependency-Check on the dependent libraries.
*
@@ -646,6 +652,9 @@ public class DependencyCheckMojo extends AbstractMojo implements MavenMultiPageR
if (connectionTimeout != null && !connectionTimeout.isEmpty()) {
Settings.setString(Settings.KEYS.CONNECTION_TIMEOUT, connectionTimeout);
}
if (suppressionFile != null && !suppressionFile.isEmpty()) {
Settings.setString(Settings.KEYS.SUPPRESSION_FILE, suppressionFile);
}
}
/**

View File

@@ -9,6 +9,7 @@ externalReport | When using as a Site plugin this parameter sets whether or
failBuildOnCVSS | Specifies if the build should be failed if a CVSS score above a specified level is identified. The default is 11 which means since the CVSS scores are 0-10, by default the build will never fail. | 11
format | The report format to be generated (HTML, XML, VULN, ALL). This configuration option has no affect if using this within the Site plugin unless the externalReport is set to true. | HTML
logFile | The file path to write verbose logging information. |
suppressionFile | The file path to the XML suppression file \- used to support suppressing false positives |
connectionTimeout | The Connection Timeout. |
proxyUrl | The Proxy URL. |
proxyPort | The Proxy Port. |