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

Reactor builds fail when multiple modules with same groupId:artifactId

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.1.0, 3.1.1, 3.2.0, 3.3.0, 3.3.1
    • None
    • jar, javadoc
    • None
    • Debian Linux versions 10.10 through 10.11
      OpenJDK 64-bit versions 11.0.11 through 11.0.12
      Maven versions 3.8.1 through 3.8.4

    Description

      In versions 3.1.0 through 3.3.1, when a reactor build has multiple projects with the same groupId and artifactId, even when different versions, the javadoc fails with:

      Exit code: 1 - error: module not found: com.aoindustries.example

      Plugin 3.0.1 works.

      We have created a minimal example project that demonstrates this bug:

      https://github.com/aoindustries/maven-javadoc-plugin-failing-multiple-projects-same-name

       

      — Copy from demo project README.md —

      To Reproduce:

      1. Clone this project: git clone https://github.com/aoindustries/maven-javadoc-plugin-failing-multiple-projects-same-name.git
      2. Change to project directory: cd maven-javadoc-plugin-failing-multiple-projects-same-name
      3. Perform build to see error in jar goal: mvn verify
      4. Also fails with javadoc goal: mvn clean compile javadoc:javadoc

      Notes:

      • Can build individual modules directly, such as (cd module-1 && mvn verify)
      • Reverting to maven-javadoc-plugin version 3.0.1 makes it work
      • Changing the groupId or artifactId in either module-1 or module-2 makes it work.
      • Changing module names, package names, or class names in modules has no effect.
      • We believe this to be distinct from Issue #673

      Attachments

        Activity

          People

            Unassigned Unassigned
            aoindustries AO Industries, Inc.
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: