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

3.1.1-SNAPSHOT fails with Java 12

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 3.1.1
    • None
    • jar, javadoc
    • None

    Description

      The latest 3.1.1-SNAPSHOT version fails with Java 12 with

      javadoc: error - The code being documented uses packages in the unnamed module, but the packages defined in https://docs.oracle.com/en/java/javase/12/docs/api/ are in named modules.

      Even if the fix from https://bugs.openjdk.java.net/browse/JDK-8212233 (explicitly setting source to 8) is applied.

      See the attached sample project to reproduce:

       

      Java Version Command Result
      Java 8 mvn clean javadoc:javadoc success
      Java 8 mvn clean javadoc:javadoc -Psnapshot success
      Java 9 mvn clean javadoc:javadoc success
      Java 9 mvn clean javadoc:javadoc -Psnapshot success
      Java 10 mvn clean javadoc:javadoc success
      Java 10 mvn clean javadoc:javadoc -Psnapshot success
      Java 11 mvn clean javadoc:javadoc failure (source fix does not work for Java 11)
      Java 11 mvn clean javadoc:javadoc -Psnapshot failure (source fix does not work for Java 11)
      Java 12 mvn clean javadoc:javadoc success
      Java 12 mvn clean javadoc:javadoc -Psnapshot failure

       

      Attachments

        1. mjavadoc-601.tar.gz
          0.8 kB
          Benedikt Ritter

        Activity

          People

            rfscholte Robert Scholte
            britter Benedikt Ritter
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: