|
38 | 38 | <maven.compiler.source>11</maven.compiler.source> |
39 | 39 | <maven.compiler.target>11</maven.compiler.target> |
40 | 40 |
|
41 | | - <maven-dependency-check.version>6.0.5</maven-dependency-check.version> |
| 41 | + <maven-dependency-check.version>8.0.2</maven-dependency-check.version> |
42 | 42 | <!-- USING HTML,XML (comma-separated list) did not work with plugin version 5.1.0 --> |
43 | 43 | <maven-dependency-check.format>ALL</maven-dependency-check.format> |
44 | 44 | <maven-dependency-check.failOnError>true</maven-dependency-check.failOnError> |
|
187 | 187 | </executions> |
188 | 188 | </plugin> |
189 | 189 |
|
190 | | - <!-- see https://jeremylong.github.io/DependencyCheck/dependency-check-maven/ --> |
191 | | - <!-- https://mvnrepository.com/artifact/org.owasp/dependency-check-maven --> |
| 190 | + <!-- needed for mvn site - see https://stackoverflow.com/a/51099913 --> |
| 191 | + <plugin> |
| 192 | + <groupId>org.apache.maven.plugins</groupId> |
| 193 | + <artifactId>maven-site-plugin</artifactId> |
| 194 | + <version>3.12.1</version> |
| 195 | + </plugin> |
| 196 | + |
| 197 | + <!-- https://mvnrepository.com/artifact/org.owasp/dependency-check-maven (run with mvn dependency-check:check ) --> |
192 | 198 | <plugin> |
193 | 199 | <groupId>org.owasp</groupId> |
194 | 200 | <artifactId>dependency-check-maven</artifactId> |
|
198 | 204 | <failOnError>${maven-dependency-check.failOnError}</failOnError> |
199 | 205 | <failBuildOnCVSS>${maven-dependency-check.failBuildOnCVSS}</failBuildOnCVSS> |
200 | 206 | <outputDirectory>target/site</outputDirectory> |
201 | | - <!--suppressionFile>${project.basedir}/dependency-check-report_suppressions.xml</suppressionFile --> |
| 207 | + <suppressionFile>dependency-check-report_suppressions.xml</suppressionFile> |
202 | 208 | </configuration> |
203 | 209 | <executions> |
204 | | - <execution> |
205 | | - <goals> |
206 | | - <goal>update-only</goal> |
207 | | - </goals> |
208 | | - </execution> |
| 210 | + <execution> |
| 211 | + <goals> |
| 212 | + <goal>check</goal> |
| 213 | + </goals> |
| 214 | + </execution> |
209 | 215 | </executions> |
210 | 216 | </plugin> |
211 | | - |
212 | 217 | </plugins> |
213 | 218 | </build> |
214 | 219 |
|
| 220 | + <!-- generate site with mvn site (including dependency check) --> |
215 | 221 | <reporting> |
216 | 222 | <plugins> |
217 | | - <!-- needed for mvn site - see https://stackoverflow.com/a/51099913 --> |
218 | | - <plugin> |
219 | | - <groupId>org.apache.maven.plugins</groupId> |
220 | | - <artifactId>maven-site-plugin</artifactId> |
221 | | - <version>3.12.1</version> |
222 | | - </plugin> |
223 | | - |
224 | 223 | <plugin> |
225 | | - <!-- https://mvnrepository.com/artifact/org.owasp/dependency-check-maven --> |
| 224 | + <!-- https://mvnrepository.com/artifact/org.owasp/dependency-check-maven (redefinition to run also with site) --> |
226 | 225 | <groupId>org.owasp</groupId> |
227 | 226 | <artifactId>dependency-check-maven</artifactId> |
228 | 227 | <version>${maven-dependency-check.version}</version> |
|
238 | 237 | <failOnError>${maven-dependency-check.failOnError}</failOnError> |
239 | 238 | <failBuildOnCVSS>${maven-dependency-check.failBuildOnCVSS}</failBuildOnCVSS> |
240 | 239 | <outputDirectory>target/site</outputDirectory> |
241 | | - <!--suppressionFile>${project.basedir}/dependency-check-report_suppressions.xml</suppressionFile --> |
| 240 | + <suppressionFile>dependency-check-report_suppressions.xml</suppressionFile> |
242 | 241 | </configuration> |
243 | 242 | </plugin> |
244 | 243 | </plugins> |
|
0 commit comments