jochenw commented on issue #1118: URL: https://github.com/apache/maven-javadoc-plugin/issues/1118#issuecomment-4189378686
For the record: 1. I can reproduce the issue as follows: ``` bash cd /c/tmp rm -rf afw git clone https://github.com/jochenw/afw.git cd afw git checkout bfbd3129e52e5b798d4b1df1389269a7c3bdc05a cd afw-di mvn3 -V clean javadoc:javadoc ``` This produces the following output: ``` txt Apache Maven 3.9.12 (848fbb4bf2d427b72bdb2471c22fced7ebd9a7a1) Maven home: C:\opt\mvn\3 Java version: 25.0.2, vendor: Eclipse Adoptium, runtime: C:\opt\jdk\25.0.2.10 Default locale: en_US, platform encoding: UTF-8 OS name: "windows 11", version: "10.0", arch: "amd64", family: "windows" [INFO] Scanning for projects... [INFO] [INFO] -------------------< com.github.jochenw.afw:afw-di >-------------------- [INFO] Building AFW (Dependency Injection Framework) 2.0.0-SNAPSHOT [INFO] from pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- clean:3.5.0:clean (default-clean) @ afw-di --- [INFO] [INFO] >>> javadoc:3.12.0:javadoc (default-cli) > generate-sources @ afw-di >>> [INFO] [INFO] <<< javadoc:3.12.0:javadoc (default-cli) < generate-sources @ afw-di <<< [INFO] [INFO] [INFO] --- javadoc:3.12.0:javadoc (default-cli) @ afw-di --- [ERROR] Creating an aggregated report for both named and unnamed modules is not possible. [ERROR] Ensure that every module has a module descriptor or is a jar with a MANIFEST.MF containing an Automatic-Module-Name. [ERROR] Fix the following projects: [ERROR] - com.github.jochenw.afw:afw-di:2.0.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.608 s [INFO] Finished at: 2026-04-05T21:02:14+02:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.12.0:javadoc (default-cli) on project afw-di: An error has occurred in Javadoc report generation: Aggregator report contains named and unnamed modules -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException ``` 2, The issue **might** be related to problems in my module-info.java. (This is my first attempt on module programming.) If I change the Maven goals from "clean javadoc:javadoc" to "clean package javadoc:javadoc", then I get the following output from the CmdModuleNameExtractor: ``` txt [ERROR] Exit code: 1 [ERROR] error: the unnamed module reads package javax.annotation from both java.annotation and jsr305 [ERROR] error: module aopalliance reads package javax.annotation from both java.annotation and jsr305 [ERROR] error: module com.google.common reads package javax.annotation from both java.annotation and jsr305 [ERROR] error: module failureaccess reads package javax.annotation from both java.annotation and jsr305 [ERROR] error: module listenablefuture reads package javax.annotation from both java.annotation and jsr305 [ERROR] error: module jsr305 reads package javax.annotation from both java.annotation and jsr305 [ERROR] error: module org.checkerframework.checker.qual reads package javax.annotation from both java.annotation and jsr305 [ERROR] error: module com.google.errorprone.annotations reads package javax.annotation from both java.annotation and jsr305 [ERROR] error: module j2objc.annotations reads package javax.annotation from both java.annotation and jsr305 [ERROR] error: module java.annotation reads package javax.annotation from both java.annotation and jsr305 [ERROR] error: module com.google.guice reads package javax.annotation from both java.annotation and jsr305 [ERROR] C:\Work\git\github.com\jochenw\afw\afw-di\src\main\java\module-info.java:4: error: module com.github.jochenw.afw.di reads package javax.annotation from both java.annotation and jsr305 [ERROR] module com.github.jochenw.afw.di { [ERROR] ^ [ERROR] 12 errors [ERROR] Command line was: cmd.exe /X /D /C "C:\opt\jdk\25.0.2.10\bin\javadoc.exe -J-Duser.language= -J-Duser.country= @options @packages @argfile" [ERROR] [ERROR] Refer to the generated Javadoc files in 'C:\Work\git\github.com\jochenw\afw\afw-di\target\reports\apidocs' dir. [ERROR] [ERROR] -> [Help 1] ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
