|
36 | 36 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
37 | 37 | <maven.compiler.source>1.8</maven.compiler.source> |
38 | 38 | <maven.compiler.target>1.8</maven.compiler.target> |
| 39 | + |
| 40 | + <maven-dependency-check.version>5.1.0</maven-dependency-check.version> |
| 41 | + <!-- USING HTML,XML (comma-separated list) did not work with plugin version 5.1.0 --> |
| 42 | + <maven-dependency-check.format>ALL</maven-dependency-check.format> |
| 43 | + <maven-dependency-check.failOnError>true</maven-dependency-check.failOnError> |
| 44 | + <!-- 11 is the default --> |
| 45 | + <maven-dependency-check.failBuildOnCVSS>8.9</maven-dependency-check.failBuildOnCVSS> |
39 | 46 | </properties> |
40 | 47 |
|
41 | 48 | <dependencies> |
|
112 | 119 | </execution> |
113 | 120 | </executions> |
114 | 121 | </plugin> |
| 122 | + |
| 123 | + <!-- see https://jeremylong.github.io/DependencyCheck/summary.html --> |
| 124 | + <!-- https://mvnrepository.com/artifact/org.owasp/dependency-check-maven --> |
| 125 | + <plugin> |
| 126 | + <groupId>org.owasp</groupId> |
| 127 | + <artifactId>dependency-check-maven</artifactId> |
| 128 | + <version>${maven-dependency-check.version}</version> |
| 129 | + <configuration> |
| 130 | + <format>${maven-dependency-check.format}</format> |
| 131 | + <failOnError>${maven-dependency-check.failOnError}</failOnError> |
| 132 | + <failBuildOnCVSS>${maven-dependency-check.failBuildOnCVSS}</failBuildOnCVSS> |
| 133 | + <outputDirectory>target/site</outputDirectory> |
| 134 | + <!--suppressionFile>${project.basedir}/dependency-check-report_suppressions.xml</suppressionFile--> |
| 135 | + </configuration> |
| 136 | + <executions> |
| 137 | + <execution> |
| 138 | + <goals> |
| 139 | + <goal>check</goal> |
| 140 | + </goals> |
| 141 | + </execution> |
| 142 | + </executions> |
| 143 | + </plugin> |
| 144 | + |
115 | 145 | </plugins> |
116 | 146 | </build> |
117 | 147 |
|
|
125 | 155 | </plugin> |
126 | 156 |
|
127 | 157 | <plugin> |
| 158 | + <!-- https://mvnrepository.com/artifact/org.owasp/dependency-check-maven --> |
128 | 159 | <groupId>org.owasp</groupId> |
129 | 160 | <artifactId>dependency-check-maven</artifactId> |
130 | | - <version>5.0.0-M2</version> |
| 161 | + <version>${maven-dependency-check.version}</version> |
131 | 162 | <reportSets> |
132 | 163 | <reportSet> |
133 | 164 | <reports> |
|
136 | 167 | </reportSet> |
137 | 168 | </reportSets> |
138 | 169 | <configuration> |
139 | | - <failBuildOnAnyVulnerability>true</failBuildOnAnyVulnerability> |
140 | | - <failBuildOnCVSS>8</failBuildOnCVSS> |
141 | | - <!-- <suppressionFile>dependency-check-report_suppressions.xml</suppressionFile> --> |
| 170 | + <format>${maven-dependency-check.format}</format> |
| 171 | + <failOnError>${maven-dependency-check.failOnError}</failOnError> |
| 172 | + <failBuildOnCVSS>${maven-dependency-check.failBuildOnCVSS}</failBuildOnCVSS> |
| 173 | + <outputDirectory>target/site</outputDirectory> |
| 174 | + <!--suppressionFile>${project.basedir}/dependency-check-report_suppressions.xml</suppressionFile--> |
142 | 175 | </configuration> |
143 | 176 | </plugin> |
144 | 177 | </plugins> |
|
0 commit comments