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

jhelou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit 2dee790b0afc36d7c3974a813f1f47198c6a96a5
Author: Jean Helou <[email protected]>
AuthorDate: Thu Feb 26 07:19:26 2026 +0100

    [JAMES-4175] fix maven site build
    
    The current process removes all modules from the root POM resulting in no 
reports being generated.
    
    This commit improves the situation by restoring a full maven site 
generation and disabling only problematic reports :
    
    javadoc triggers unresolved symbols in mpt/mavenplugin
    
    findbugs is not compatible with our current jdk and requires a migration to 
spotbugs
---
 pom.xml           | 119 ++++++++++++++++++++++++++++++++++++++++--------------
 src/site/site.xml |  21 ++++------
 2 files changed, 97 insertions(+), 43 deletions(-)

diff --git a/pom.xml b/pom.xml
index 7af94808aa..226b996296 100644
--- a/pom.xml
+++ b/pom.xml
@@ -609,6 +609,7 @@
             otherwise the set values are used by default.
         -->
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+        
<project.build.outputTimestamp>1980-01-01T00:00:02Z</project.build.outputTimestamp>
         <target.jdk>21</target.jdk>
         <maven.compiler.source>${target.jdk}</maven.compiler.source>
         <maven.compiler.target>${target.jdk}</maven.compiler.target>
@@ -3657,7 +3658,7 @@
                 <plugin>
                     <groupId>org.apache.maven.plugins</groupId>
                     <artifactId>maven-javadoc-plugin</artifactId>
-                    <version>3.11.2</version>
+                    <version>3.12.0</version>
                     <configuration>
                         <!-- The javadoc plugin only runs in the javadoc 
modules. But with the default configuration it tries
                               to run a new maven instance in every dependency, 
in order to generate the apidocs there as well.
@@ -3814,33 +3815,7 @@
                 <plugin>
                     <groupId>org.apache.rat</groupId>
                     <artifactId>apache-rat-plugin</artifactId>
-                    <version>0.16.1</version>
-                    <configuration>
-                        <excludes>
-                            <exclude>BUILDING.*</exclude>
-                            <exclude>HOWTO.*</exclude>
-                            <exclude>HOWTO_*</exclude>
-                            <exclude>LICENSE.*</exclude>
-                            <exclude>NOTICE.*</exclude>
-                            <!-- site resources -->
-                            <exclude>src/site/resources/download*.cgi</exclude>
-                            
<exclude>src/site/resources/downloads/formatting.xml</exclude>
-                            
<exclude>src/site/resources/js/galleria/**</exclude>
-                            
<exclude>src/site/resources/model-eclipse-modeler/*</exclude>
-                            <exclude>src/site/resources/robots.txt</exclude>
-                            <!-- Generated by Maven -->
-                            <exclude>release.properties</exclude>
-                            <exclude>dist/**/*</exclude>
-                            <exclude>**/derby.log</exclude>
-                            <exclude>**/h2.log</exclude>
-                            <!-- Eclipse -->
-                            <exclude>**/.*</exclude>
-                            <exclude>.*/**/*</exclude>
-                            <!-- Schemas for offline use -->
-                            
<exclude>**/META-INF/XSD/activemq-core-*.xsd</exclude>
-                            
<exclude>**/META-INF/XSD/spring-beans-*.xsd</exclude>
-                        </excludes>
-                    </configuration>
+                    <version>0.17</version>
                 </plugin>
                 <plugin>
                     <groupId>org.codehaus.mojo</groupId>
@@ -3872,7 +3847,7 @@
                 <plugin>
                     <groupId>org.codehaus.mojo</groupId>
                     <artifactId>versions-maven-plugin</artifactId>
-                    <version>2.18.0</version>
+                    <version>2.21.0</version>
                 </plugin>
                 <plugin>
                     <groupId>org.eclipse.m2e</groupId>
@@ -4081,7 +4056,8 @@
                     <dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
                     <injectAllReactorProjects>true</injectAllReactorProjects>
                     <generateGitPropertiesFile>true</generateGitPropertiesFile>
-                    
<generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
+                    
<generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties
+                    </generateGitPropertiesFilename>
                     <failOnNoGitDirectory>false</failOnNoGitDirectory>
                     <format>json</format>
                     <gitDescribe>
@@ -4138,31 +4114,114 @@
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-project-info-reports-plugin</artifactId>
+                <reportSets>
+                    <reportSet>
+                        <reports>
+                            <report>ci-management</report>
+                            <report>dependencies</report>
+                            <report>dependency-info</report>
+                            <report>dependency-management</report>
+                            <report>distribution-management</report>
+                            <report>index</report>
+                            <report>issue-management</report>
+                            <report>licenses</report>
+                            <report>mailing-lists</report>
+                            <!--
+                            disabled to avoid slowly failing but non blocking  
resolution
+                            https://issues.apache.org/jira/browse/JAMES-4180
+                            -->
+                            <!--<report>plugin-management</report>-->
+                            <report>plugins</report>
+                            <report>scm</report>
+                            <report>summary</report>
+                            <report>team</report>
+                        </reports>
+                    </reportSet>
+                </reportSets>
             </plugin>
+
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-jxr-plugin</artifactId>
+                <reportSets>
+                    <reportSet>
+                        <reports>
+                            <report>jxr-no-fork</report>
+                            <report>test-jxr-no-fork</report>
+                        </reports>
+                    </reportSet>
+                </reportSets>
             </plugin>
+
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-dependency-plugin</artifactId>
             </plugin>
+
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-surefire-report-plugin</artifactId>
             </plugin>
+
             <plugin>
                 <groupId>org.apache.rat</groupId>
                 <artifactId>apache-rat-plugin</artifactId>
+                <configuration>
+                    <inputExcludes>
+                        <inputExclude>BUILDING.*</inputExclude>
+                        <inputExclude>HOWTO.*</inputExclude>
+                        <inputExclude>HOWTO_*</inputExclude>
+                        <inputExclude>LICENSE.*</inputExclude>
+                        <inputExclude>NOTICE.*</inputExclude>
+                        <!-- site resources -->
+                        
<inputExclude>src/site/resources/download*.cgi</inputExclude>
+                        
<inputExclude>src/site/resources/downloads/formatting.xml</inputExclude>
+                        
<inputExclude>src/site/resources/js/galleria/**</inputExclude>
+                        
<inputExclude>src/site/resources/model-eclipse-modeler/*</inputExclude>
+                        
<inputExclude>src/site/resources/robots.txt</inputExclude>
+                        <!-- Generated by Maven -->
+                        <inputExclude>release.properties</inputExclude>
+                        <inputExclude>dist/**/*</inputExclude>
+                        <inputExclude>**/derby.log</inputExclude>
+                        <inputExclude>**/h2.log</inputExclude>
+                        <!-- Eclipse -->
+                        <inputExclude>**/.*</inputExclude>
+                        <inputExclude>.*/**/*</inputExclude>
+                        <!-- Schemas for offline use -->
+                        
<inputExclude>**/META-INF/XSD/activemq-core-*.xsd</inputExclude>
+                        
<inputExclude>**/META-INF/XSD/spring-beans-*.xsd</inputExclude>
+                    </inputExcludes>
+                </configuration>
             </plugin>
+<!--
+            Even using the -no-fork variant of hte tasks, generating this 
reports
+            triggers unresolved symbols errors which need to be further 
investigated
+            trakced in https://issues.apache.org/jira/browse/JAMES-4178
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-javadoc-plugin</artifactId>
+                <reportSets>
+                    <reportSet>
+                        <reports>
+                            <report>javadoc-no-fork</report>
+                            <report>test-javadoc-no-fork</report>
+                        </reports>
+                    </reportSet>
+                </reportSets>
             </plugin>
+-->
+
+<!--
+            This plugin is not compatible with jdk21, so I disabled it
+            temporarily.
+            it appears the successor is spotbugs but we should do this 
migration
+            in a separate effort 
https://issues.apache.org/jira/browse/JAMES-4179
             <plugin>
                 <groupId>org.codehaus.mojo</groupId>
                 <artifactId>findbugs-maven-plugin</artifactId>
             </plugin>
+
+-->
             <plugin>
                 <groupId>org.codehaus.mojo</groupId>
                 <artifactId>versions-maven-plugin</artifactId>
diff --git a/src/site/site.xml b/src/site/site.xml
index 4fa2d2f21a..23d6cf4c5f 100644
--- a/src/site/site.xml
+++ b/src/site/site.xml
@@ -17,10 +17,10 @@
     specific language governing permissions and limitations
     under the License.
 -->
-<project
-    xmlns="http://maven.apache.org/DECORATION/1.0.0";
+<site
+    xmlns="http://maven.apache.org/SITE/2.0.0";
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
-    xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.0 
http://maven.apache.org/xsd/decoration-1.0.0.xsd";
+    xsi:schemaLocation="http://maven.apache.org/SITE/2.0.0 
https://maven.apache.org/xsd/site-2.0.0.xsd";
     name="Apache James Project">
 
     <skin>
@@ -29,17 +29,12 @@
         <version>${james-skin.version}</version>
     </skin>
 
-    <bannerLeft>
-        <name>James Project</name>
-        <src>images/logos/james-logo.png</src>
-        <href>https://james.apache.org/index.html</href>
-        <alt>james-logo.png</alt>
+    <bannerLeft name="James Project" 
href="https://james.apache.org/index.html"; >
+        <image src="images/logos/james-logo.png"  alt="james-logo.png"/>
     </bannerLeft>
 
-    <bannerRight>
-        <name>The Apache Software Foundation</name>
-        <src>images/logos/asf_logo_small.png</src>
-        <href>https://www.apache.org/index.html</href>
+    <bannerRight name="The Apache Software Foundation" 
href="https://www.apache.org/index.html";>
+        <image src="images/logos/asf_logo_small.png"/>
     </bannerRight>
 
     <version position="none" />
@@ -230,4 +225,4 @@
 
     </body>
 
-</project>
+</site>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to