Details
Description
In optaplanner, we provide automatic module names for all our modules.
But some modules have a dependency with classes in the no-name package.
That was not a problem for the maven-javadoc-plugin, except since maven-javadoc-plugin 3.3.0 (including 3.5.0) it crashes the entire build.
This happens with dependencies on quarkus and on rewrite.
For example, for optaplanner-migrator that depends on rewrite-maven and rewrite-gradle:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.5.0:jar (default) on project reproducer: Execution default of goal org.apache.maven.plugins:maven-javadoc-plugin:3.5.0:jar failed: Unable to derive module descriptor for /.../.m2/repository/org/openrewrite/rewrite-gradle/7.38.0/rewrite-gradle-7.38.0.jar: PluginSpec.class found in top-level directory (unnamed package not allowed in module) -> [Help 1]
Isolated reproducer:
https://github.com/ge0ffrey/maven-javadoc-plugin-3.5.0-reproducer
Attachments
Issue Links
- duplicates
-
MJAVADOC-707 Plugin won't work if Automatic-Module-Name is used
- Closed