diff --git a/dependency-check-maven/src/main/java/org/owasp/dependencycheck/maven/DependencyCheckMojo.java b/dependency-check-maven/src/main/java/org/owasp/dependencycheck/maven/DependencyCheckMojo.java index e4ca394d7..b1cd1ec56 100644 --- a/dependency-check-maven/src/main/java/org/owasp/dependencycheck/maven/DependencyCheckMojo.java +++ b/dependency-check-maven/src/main/java/org/owasp/dependencycheck/maven/DependencyCheckMojo.java @@ -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; // + /** * 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); + } } /** diff --git a/dependency-check-maven/src/site/markdown/configuration.md b/dependency-check-maven/src/site/markdown/configuration.md index 261219d64..642d756de 100644 --- a/dependency-check-maven/src/site/markdown/configuration.md +++ b/dependency-check-maven/src/site/markdown/configuration.md @@ -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. |