Uploaded image for project: 'Maven Javadoc Plugin'
  1. Maven Javadoc Plugin
  2. MJAVADOC-747

jar goal fails with automatic module (Regression from 3.2.0)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Duplicate
    • 3.3.0, 3.3.1, 3.3.2, 3.4.0, 3.4.1, 3.5.0
    • None
    • jar

    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

          Activity

            People

              Unassigned Unassigned
              ge0ffrey Geoffrey De Smet
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: