This is an automated email from the ASF dual-hosted git repository.

jungm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/johnzon.git


The following commit(s) were added to refs/heads/master by this push:
     new 5677e426 fix site generation on newer java/maven versions
5677e426 is described below

commit 5677e42698f24984474e2b1739fdac19f02a311b
Author: Markus Jung <ju...@apache.org>
AuthorDate: Sat Feb 10 21:39:43 2024 +0100

    fix site generation on newer java/maven versions
---
 pom.xml | 24 +++++++++++++++++++++++-
 1 file changed, 23 insertions(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index d0709e65..bbb4da70 100644
--- a/pom.xml
+++ b/pom.xml
@@ -127,7 +127,7 @@
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-javadoc-plugin</artifactId>
-          <version>3.5.0</version>
+          <version>3.6.3</version>
         </plugin>
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
@@ -541,6 +541,24 @@
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-pmd-plugin</artifactId>
+
+        <!-- running aggregate-pmd causes weird issues with project artifact 
cache introduced in maven 3.5.2 so just run the non-forking variant here.
+             We invoke verify anyways before generating the site, so there is 
no need for pmd plugin to fork test-compile -->
+        <reportSets>
+          <reportSet>
+            <reports>
+              <report>pmd</report>
+              <report>cpd</report>
+            </reports>
+          </reportSet>
+          <reportSet>
+            <inherited>false</inherited>
+            <reports>
+              <report>aggregate-pmd-no-fork</report>
+              <report>aggregate-cpd</report>
+            </reports>
+          </reportSet>
+        </reportSets>
       </plugin>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
@@ -555,6 +573,10 @@
         <configuration>
           <notimestamp>true</notimestamp>
           <show>private</show>
+
+          <!-- enable legacy mode (=prefer classpath over modulepath)
+               to avoid errors because parts of johnzon having an 
Automatic-Module-Name -->
+          <legacyMode>true</legacyMode>
         </configuration>
         <reportSets>
           <reportSet>

Reply via email to