This is an automated email from the ASF dual-hosted git repository. stoty pushed a commit to branch 5.2 in repository https://gitbox.apache.org/repos/asf/phoenix.git
The following commit(s) were added to refs/heads/5.2 by this push: new b83c84ea92 PHOENIX-7550 Update OWASP plugin to 12.1.0 (#2091) b83c84ea92 is described below commit b83c84ea921a627a0a6d74e09873a12065ca7adb Author: Istvan Toth <st...@apache.org> AuthorDate: Sun Mar 16 09:26:56 2025 +0100 PHOENIX-7550 Update OWASP plugin to 12.1.0 (#2091) --- BUILDING.md | 6 ++++++ pom.xml | 47 +++++++++++++++++++++++++++++------------------ 2 files changed, 35 insertions(+), 18 deletions(-) diff --git a/BUILDING.md b/BUILDING.md index d32692fe5b..ed148c5887 100644 --- a/BUILDING.md +++ b/BUILDING.md @@ -127,6 +127,12 @@ To run all available reports (takes a few hours) To run OWASP, RAT and Spotbugs, but not Jacoco (takes ~10 minutes) `$ mvn clean compile test-compile site -Dspotbugs.site` +It is recommended to request an NVD API [key](https://nvd.nist.gov/developers/request-an-api-key) to +increase the download speed of CVE data. To use the key append `-DnvdApiKey=<key>` to the maven +command line. + +Note that the dependency check report generation is only enabled when run on Java 11 and later. + The reports are accessible via `target/site/index.html`, under the main project, as well as each of the subprojects. (not every project has all reports) diff --git a/pom.xml b/pom.xml index 810b498caf..be6e15372b 100644 --- a/pom.xml +++ b/pom.xml @@ -158,7 +158,7 @@ <jacoco-maven-plugin.version>0.8.11</jacoco-maven-plugin.version> <sonar-maven-plugin.version>3.10.0.2594</sonar-maven-plugin.version> <findbugs-annotations.version>1.3.9-1</findbugs-annotations.version> - <maven-owasp-plugin.version>10.0.2</maven-owasp-plugin.version> + <maven-owasp-plugin.version>12.1.0</maven-owasp-plugin.version> <os.maven.version>1.7.1</os.maven.version> <jasmine-maven-plugin.version>2.2</jasmine-maven-plugin.version> <lifecycle-mapping.version>1.0.0</lifecycle-mapping.version> @@ -166,6 +166,8 @@ <exec-maven-plugin.version>3.1.1</exec-maven-plugin.version> <maven-checkstyle-plugin.version>3.3.0</maven-checkstyle-plugin.version> <maven-shade-plugin.version>3.6.0</maven-shade-plugin.version> + <!-- This overrides the property in the ASF parent project--> + <version.maven-site-plugin>3.21.0</version.maven-site-plugin> <!-- Plugin options --> <skipParallelStatsEnabledTests>false</skipParallelStatsEnabledTests> @@ -2272,6 +2274,32 @@ @{jacocoArgLine}</argLine> </properties> </profile> + <profile> + <activation> + <jdk>[11,)</jdk> + </activation> + <reporting> + <plugins> + <plugin> + <groupId>org.owasp</groupId> + <artifactId>dependency-check-maven</artifactId> + <version>${maven-owasp-plugin.version}</version> + <configuration> + <skipProvidedScope>true</skipProvidedScope> + <skipRuntimeScope>true</skipRuntimeScope> + <skipSystemScope>true</skipSystemScope> + </configuration> + <reportSets> + <reportSet> + <reports> + <report>aggregate</report> + </reports> + </reportSet> + </reportSets> + </plugin> + </plugins> + </reporting> + </profile> </profiles> <reporting> <plugins> @@ -2279,23 +2307,6 @@ <groupId>com.github.spotbugs</groupId> <artifactId>spotbugs-maven-plugin</artifactId> </plugin> - <plugin> - <groupId>org.owasp</groupId> - <artifactId>dependency-check-maven</artifactId> - <version>${maven-owasp-plugin.version}</version> - <configuration> - <skipProvidedScope>true</skipProvidedScope> - <skipRuntimeScope>true</skipRuntimeScope> - <skipSystemScope>true</skipSystemScope> - </configuration> - <reportSets> - <reportSet> - <reports> - <report>aggregate</report> - </reports> - </reportSet> - </reportSets> - </plugin> <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId>