The root of the problem is the automatic module name generation of the jool-java-8 jar file. By default it becomes jool.java.8 and a number by itself is an illegal portion of a module name.
Without using "Automatic-Module-Name" your project builds on the classpath as always. When including that, it attempts to build on the module path and the Javadoc plugin apparently does not handle that well. I fought similar issues for a while and eventually got rid of the problematic dependency. You might try moditect to insert a module name of your choice. You might try approaching the authors of jool-java-8 and requesting they provide a valid automatic module name. On 3/26/23, 6:46 PM, "Maxim Solodovnik" <solo...@apache.org <mailto:solo...@apache.org>> wrote: I get zero responses for my emails :(( Maybe I should provide more details? Or my English is not good enough? :( This issue blocks our release process, I'd love to get some help Thanks in advance :) On Sat, 25 Mar 2023 at 23:34, Maxim Solodovnik <solomax...@gmail.com <mailto:solomax...@gmail.com>> wrote: > > Here is the sample project: https://github.com/solomax/javadoc-exclude > <https://github.com/solomax/javadoc-exclude> > > The issue is NOT reproducible if "Automatic-Module-Name" is absent > > On Tue, 14 Feb 2023 at 13:42, Maxim Solodovnik <solomax...@gmail.com > <mailto:solomax...@gmail.com>> wrote: > > > > Same results with version 3.5.0 > > > > On Tue, 14 Feb 2023 at 12:07, Maxim Solodovnik <solomax...@gmail.com > > <mailto:solomax...@gmail.com>> wrote: > > > > > > Hello All, > > > > > > I'm getting following error while running `javadoc:3.4.1:jar`: > > > > > > [ERROR] Failed to execute goal > > > org.apache.maven.plugins:maven-javadoc-plugin:3.4.1:jar > > > (attach-javadocs) on project openmeetings-util: Execution > > > attach-javadocs of goal > > > org.apache.maven.plugins:maven-javadoc-plugin:3.4.1:jar failed: Unable > > > to derive module descriptor for > > > /home/solomax/.m2/repository/org/jooq/jool-java-8/0.9.14/jool-java-8-0.9.14.jar: > > > jool.java.8: Invalid module name: '8' is not a Java identifier -> > > > [Help 1] > > > > > > this "broken" jar is transitive dependency I would like to exclude > > > from javadoc generation > > > > > > [INFO] --- dependency:3.5.0:tree (default-cli) @ openmeetings-util --- > > > [INFO] org.apache.openmeetings:openmeetings-util:jar:7.1.0-SNAPSHOT > > > [INFO] +- org.dom4j:dom4j:jar:2.1.4:compile > > > [INFO] +- org.mnode.ical4j:ical4j:jar:4.0.0-beta5:compile > > > [INFO] | +- org.apache.commons:commons-collections4:jar:4.4:compile > > > [INFO] | +- commons-validator:commons-validator:jar:1.7:compile > > > [INFO] | | +- commons-beanutils:commons-beanutils:jar:1.9.4:compile > > > [INFO] | | +- commons-digester:commons-digester:jar:2.1:compile > > > [INFO] | | +- commons-logging:commons-logging:jar:1.2:compile > > > [INFO] | | \- commons-collections:commons-collections:jar:3.2.2:compile > > > [INFO] | +- org.threeten:threeten-extra:jar:1.7.0:compile > > > [INFO] | \- org.jooq:jool-java-8:jar:0.9.14:compile > > > > > > How this can be achived? > > > > > > I've already tried > > > <dependencySourceExcludes> > > > <excludePackageNames> > > > > > > with no luck > > > > > > <includeTransitiveDependencySources> has default value `false` > > > > > > Will appreciate any help :))) > > > > > > My configuration is > > > > > > Apache Maven 3.9.0 (9b58d2bad23a66be161c4664ef21ce219c2c8584) > > > Maven home: /opt/maven > > > Java version: 17.0.5, vendor: Private Build, runtime: > > > /usr/lib/jvm/java-17-openjdk-amd64 > > > Default locale: en_US, platform encoding: UTF-8 > > > OS name: "linux", version: "5.15.0-60-generic", arch: "amd64", family: > > > "unix" > > > > > > > > > > > > > > > -- > > > Best regards, > > > Maxim > > > > > > > > -- > > Best regards, > > Maxim > > > > -- > Best regards, > Maxim --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org <mailto:users-unsubscr...@maven.apache.org> For additional commands, e-mail: users-h...@maven.apache.org <mailto:users-h...@maven.apache.org> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org