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

Workaround for bug JDK-8212233 does no longer work in 3.1.1 when using Java 12

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 3.1.1
    • None
    • jar, javadoc
    • None

    Description

      The workaround for JDK-8212233 does not longer work in 3.1.1 when building on Java 12. The error being reported is:

      Exit code: 1 - 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.

      The workaround for this was to add <source>8</source> to the maven-javadoc-plugin configuration. This would fix the issue on Java 9,10 and 12 in 3.1.0. On 11 it was still broken. When I updated to the 3.1.1 release, my build started to fail on Java 12, although it worked before.

      I've attached a demo project and here is what I can observe when I run mvn javadoc:javadoc:

       

      Plugin version Java Version Result
      3.1.0 9 Success
      3.1.0 10 Success
      3.1.0 11 Failure
      3.1.0 12 Success
      3.1.1 9 Success
      3.1.1 10 Success
      3.1.1 11 Failure
      3.1.1 12 Failure

       

      Attachments

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

        Activity

          People

            olamy Olivier Lamy
            britter Benedikt Ritter
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: