Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-55692

Java 11 Javadoc generation fails in maven

    Details

    • Similar Issues:

      Description

      When compiling the platformlabeler-plugin with Java 11.0.2 using mvn clean install, it fails the build because the Java 11.0.2 javadoc command reports:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.0.1:javadoc (default-cli) on project platformlabeler: An error has occurred in Javadoc report generation:
      [ERROR] Exit code: 1 - javadoc: error - The code being documented uses modules but the packages defined in https://docs.oracle.com/javase/8/docs/api/ are in the unnamed module.
      [ERROR]
      [ERROR] Command line was: /usr/lib/jvm/java-11-openjdk-amd64/bin/javadoc @options @packages
      [ERROR]
      [ERROR] Refer to the generated Javadoc files in '/home/mwaite/git/jenkins/platformlabeler-plugin/target/site/apidocs' dir.
      

      Simplest solution for the platformlabeler-plugin is to disable javadoc.

      That solution isn't viable for other plugins (like the git client plugin), but works for platformlabeler-plugin.

      Hints in other locations indicate that a change to the maven javadoc plugin 3.1.0 is expected to resolve the issue

        Attachments

          Issue Links

            Activity

            markewaite Mark Waite created issue -
            markewaite Mark Waite made changes -
            Field Original Value New Value
            Epic Link JENKINS-40689 [ 177392 ]
            markewaite Mark Waite made changes -
            Remote Link This issue links to "PR-42 - Don't build javadoc (Web Link)" [ 22222 ]
            markewaite Mark Waite made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            markewaite Mark Waite made changes -
            Link This issue is related to JENKINS-53788 [ JENKINS-53788 ]
            markewaite Mark Waite made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            markewaite Mark Waite made changes -
            Status In Review [ 10005 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            markewaite Mark Waite made changes -
            Status Resolved [ 5 ] Closed [ 6 ]

              People

              • Assignee:
                markewaite Mark Waite
                Reporter:
                markewaite Mark Waite
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: