You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Geoffrey De Smet (Jira)" <ji...@apache.org> on 2023/03/20 14:42:00 UTC

[jira] [Created] (MJAVADOC-747) jar goal fails with automatic module (Regression from 3.2.0)

Geoffrey De Smet created MJAVADOC-747:
-----------------------------------------

             Summary: jar goal fails with automatic module  (Regression from 3.2.0)
                 Key: MJAVADOC-747
                 URL: https://issues.apache.org/jira/browse/MJAVADOC-747
             Project: Maven Javadoc Plugin
          Issue Type: Bug
          Components: jar
    Affects Versions: 3.5.0, 3.4.1, 3.4.0, 3.3.2, 3.3.1, 3.3.0
            Reporter: Geoffrey De Smet


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:
{code:java}
[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]{code}


Reproducer:
  https://github.com/ge0ffrey/maven-javadoc-plugin-3.5.0-reproducer



--
This message was sent by Atlassian Jira
(v8.20.10#820010)