Skip to content

Commit 2f392b8

Browse files
authored
PHOENIX-7550 Update OWASP plugin to 12.1.0 (#2091)
1 parent b0d7898 commit 2f392b8

File tree

2 files changed

+35
-18
lines changed

2 files changed

+35
-18
lines changed

BUILDING.md

+6
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,12 @@ To run all available reports (takes a few hours)
127127
To run OWASP, RAT and Spotbugs, but not Jacoco (takes ~10 minutes)
128128
`$ mvn clean compile test-compile site -Dspotbugs.site`
129129

130+
It is recommended to request an NVD API [key](https://nvd.nist.gov/developers/request-an-api-key) to
131+
increase the download speed of CVE data. To use the key append `-DnvdApiKey=<key>` to the maven
132+
command line.
133+
134+
Note that the dependency check report generation is only enabled when run on Java 11 and later.
135+
130136
The reports are accessible via `target/site/index.html`, under the main project,
131137
as well as each of the subprojects. (not every project has all reports)
132138

pom.xml

+29-18
Original file line numberDiff line numberDiff line change
@@ -153,14 +153,16 @@
153153
<jacoco-maven-plugin.version>0.8.11</jacoco-maven-plugin.version>
154154
<sonar-maven-plugin.version>3.10.0.2594</sonar-maven-plugin.version>
155155
<findbugs-annotations.version>1.3.9-1</findbugs-annotations.version>
156-
<maven-owasp-plugin.version>10.0.2</maven-owasp-plugin.version>
156+
<maven-owasp-plugin.version>12.1.0</maven-owasp-plugin.version>
157157
<os.maven.version>1.7.1</os.maven.version>
158158
<jasmine-maven-plugin.version>2.2</jasmine-maven-plugin.version>
159159
<lifecycle-mapping.version>1.0.0</lifecycle-mapping.version>
160160
<maven-bundle-plugin.version>5.1.9</maven-bundle-plugin.version>
161161
<exec-maven-plugin.version>3.1.1</exec-maven-plugin.version>
162162
<maven-checkstyle-plugin.version>3.3.0</maven-checkstyle-plugin.version>
163163
<maven-shade-plugin.version>3.6.0</maven-shade-plugin.version>
164+
<!-- This overrides the property in the ASF parent project-->
165+
<version.maven-site-plugin>3.21.0</version.maven-site-plugin>
164166
<mvel2.version>2.5.2.Final</mvel2.version>
165167

166168
<!-- Plugin options -->
@@ -2291,30 +2293,39 @@
22912293
@{jacocoArgLine}</argLine>
22922294
</properties>
22932295
</profile>
2296+
<profile>
2297+
<activation>
2298+
<jdk>[11,)</jdk>
2299+
</activation>
2300+
<reporting>
2301+
<plugins>
2302+
<plugin>
2303+
<groupId>org.owasp</groupId>
2304+
<artifactId>dependency-check-maven</artifactId>
2305+
<version>${maven-owasp-plugin.version}</version>
2306+
<configuration>
2307+
<skipProvidedScope>true</skipProvidedScope>
2308+
<skipRuntimeScope>true</skipRuntimeScope>
2309+
<skipSystemScope>true</skipSystemScope>
2310+
</configuration>
2311+
<reportSets>
2312+
<reportSet>
2313+
<reports>
2314+
<report>aggregate</report>
2315+
</reports>
2316+
</reportSet>
2317+
</reportSets>
2318+
</plugin>
2319+
</plugins>
2320+
</reporting>
2321+
</profile>
22942322
</profiles>
22952323
<reporting>
22962324
<plugins>
22972325
<plugin>
22982326
<groupId>com.github.spotbugs</groupId>
22992327
<artifactId>spotbugs-maven-plugin</artifactId>
23002328
</plugin>
2301-
<plugin>
2302-
<groupId>org.owasp</groupId>
2303-
<artifactId>dependency-check-maven</artifactId>
2304-
<version>${maven-owasp-plugin.version}</version>
2305-
<configuration>
2306-
<skipProvidedScope>true</skipProvidedScope>
2307-
<skipRuntimeScope>true</skipRuntimeScope>
2308-
<skipSystemScope>true</skipSystemScope>
2309-
</configuration>
2310-
<reportSets>
2311-
<reportSet>
2312-
<reports>
2313-
<report>aggregate</report>
2314-
</reports>
2315-
</reportSet>
2316-
</reportSets>
2317-
</plugin>
23182329
<plugin>
23192330
<groupId>org.jacoco</groupId>
23202331
<artifactId>jacoco-maven-plugin</artifactId>

0 commit comments

Comments
 (0)