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

robertlazarski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git

commit 41ff480e9b9a407ace486ecf0dd6a295870dc678
Author: Robert Lazarski <[email protected]>
AuthorDate: Tue Apr 21 13:19:41 2026 -1000

    AXIS2-6040 Fix javadoc build: source 8->17, legacyMode for javac-shaded
    
    Two issues causing GHA CI failure on all JDK versions:
    
    1. maven-javadoc-plugin was configured with <source>8</source> but the
       project compiles at Java 17 (maven.compiler.release=17). Any source
       file using Java 9+ features would break javadoc generation. Changed
       to <source>${maven.compiler.release}</source> to stay in sync.
    
    2. javac-shaded-9+181-r4173-1.jar (transitive via Error Prone in
       codegen) has an invalid automatic module name starting with '9'.
       Added legacyMode=true to skip module resolution — safe because
       Axis2 uses Automatic-Module-Name manifest entries, not
       module-info.java.
    
    Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
---
 pom.xml | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 7669fdffa8..f54e45fd19 100644
--- a/pom.xml
+++ b/pom.xml
@@ -980,10 +980,17 @@
                     <artifactId>maven-javadoc-plugin</artifactId>
                     <version>3.12.0</version>
                     <configuration>
-                       <source>8</source>
+                       <source>${maven.compiler.release}</source>
                         <detectOfflineLinks>false</detectOfflineLinks>
                         <doclint>none</doclint>
                         <quiet>true</quiet>
+                        <!-- AXIS2-6040: javac-shaded-9+181-r4173-1.jar 
(transitive
+                             via Error Prone in codegen) has an invalid 
automatic module
+                             name starting with '9'. legacyMode skips module 
resolution.
+                             This is safe because Axis2 uses 
Automatic-Module-Name
+                             manifest entries, not module-info.java — there is 
no module
+                             information for javadoc to process. -->
+                        <legacyMode>true</legacyMode>
                     </configuration>
                 </plugin>
                 <plugin>

Reply via email to