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

Maven Javadoc Plugin fails to resolve the dependencies when used with Java 11

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.0, 3.1.1
    • Fix Version/s: 3.2.0
    • Component/s: javadoc
    • Labels:
      None
    • Environment:
      Mageia Linux 7, AdoptOpenJDK 11.0.1

      Description

      Maven Javadoc Plugin fails to resolve the dependencies that are inherited by all sub-modules in the parent pom file and the dependencies specific to some sub-modules if and only if it's used with Java 11 whereas it works flawlessly with Java 8. This bug is reproducible with this project:

      https://jogamp.org/cgit/ardor3d.git/tree/

      Enter "mvn site" and you'll get the following error message:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.7.1:site (default-site) on project ardor3d: Error generating maven-javadoc-plugin:3.1.1:aggregate report: [ERROR] Exit code: 1 - Ardor3D/ardor3d-swt/src/test/java/com/ardor3d/input/swt/TestSwtMouseWrapper.java:23: error: package org.eclipse.swt.events does not exist

      Note that "mvn install" works with Java 11, this problem of dependency management only occurs while generating the Java API documentation with Java 11.

       

        Attachments

        1. BuildMeFirst.zip
          11 kB
          Hendrik Schreiber
        2. MavenTest.zip
          5 kB
          Julien Gouesse
        3. ThenBuildThisSite.zip
          19 kB
          Hendrik Schreiber

          Issue Links

            Activity

              People

              • Assignee:
                olamy Olivier Lamy
                Reporter:
                gouessej Julien Gouesse
              • Votes:
                2 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m