mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-24 18:11:47 +01:00
Updated to support suppression file configuration
Former-commit-id: 77c9cfcc307a682dc3786957b88e24afe9f7e33e
This commit is contained in:
@@ -178,8 +178,14 @@ public class DependencyCheckMojo extends AbstractMojo implements MavenMultiPageR
|
|||||||
@SuppressWarnings("CanBeFinal")
|
@SuppressWarnings("CanBeFinal")
|
||||||
@Parameter(property = "connectionTimeout", defaultValue = "", required = false)
|
@Parameter(property = "connectionTimeout", defaultValue = "", required = false)
|
||||||
private String connectionTimeout = null;
|
private String connectionTimeout = null;
|
||||||
|
/**
|
||||||
|
* The Connection Timeout.
|
||||||
|
*/
|
||||||
|
@SuppressWarnings("CanBeFinal")
|
||||||
|
@Parameter(property = "suppressionFile", defaultValue = "", required = false)
|
||||||
|
private String suppressionFile = null;
|
||||||
// </editor-fold>
|
// </editor-fold>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Executes the Dependency-Check on the dependent libraries.
|
* Executes the Dependency-Check on the dependent libraries.
|
||||||
*
|
*
|
||||||
@@ -646,6 +652,9 @@ public class DependencyCheckMojo extends AbstractMojo implements MavenMultiPageR
|
|||||||
if (connectionTimeout != null && !connectionTimeout.isEmpty()) {
|
if (connectionTimeout != null && !connectionTimeout.isEmpty()) {
|
||||||
Settings.setString(Settings.KEYS.CONNECTION_TIMEOUT, connectionTimeout);
|
Settings.setString(Settings.KEYS.CONNECTION_TIMEOUT, connectionTimeout);
|
||||||
}
|
}
|
||||||
|
if (suppressionFile != null && !suppressionFile.isEmpty()) {
|
||||||
|
Settings.setString(Settings.KEYS.SUPPRESSION_FILE, suppressionFile);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -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
|
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
|
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. |
|
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. |
|
connectionTimeout | The Connection Timeout. |
|
||||||
proxyUrl | The Proxy URL. |
|
proxyUrl | The Proxy URL. |
|
||||||
proxyPort | The Proxy Port. |
|
proxyPort | The Proxy Port. |
|
||||||
|
|||||||
Reference in New Issue
Block a user