Uploaded image for project: 'WildFly Elytron'
  1. WildFly Elytron
  2. ELY-1671

Unable to build javadoc on JDK 10 and JDK 11

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • 1.7.0.CR3
    • None
    • Documentation
    • None

    Description

      JDK 10 Error:

      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 1.854 s
      [INFO] Finished at: 2018-09-19T13:50:48+01:00
      [INFO] Final Memory: 26M/108M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.0.0-M1:javadoc (default-cli) on project wildfly-elytron: An error has occurred in Javadoc report generation:
      [ERROR] Exit code: 1 - javadoc: warning - The old Doclet and Taglet APIs in the packages
      [ERROR] com.sun.javadoc, com.sun.tools.doclets and their implementations
      [ERROR] are planned to be removed in a future JDK release. These
      [ERROR] components have been superseded by the new APIs in jdk.javadoc.doclet.
      [ERROR] Users are strongly recommended to migrate to the new APIs.
      [ERROR] javadoc: error - invalid flag: -Xdoclint:none
      [ERROR] 
      [ERROR] Command line was: /home/darranl/applications/java/jdk-10.0.2/bin/javadoc @options @argfile
      [ERROR] 
      [ERROR] Refer to the generated Javadoc files in '/home/darranl/src/community/wildfly-elytron/target/site/apidocs/api-javadoc' dir.
      [ERROR] -> [Help 1]
      [ERROR] 
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR] 
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
      

      JDK 11 Error:

      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 5.908 s
      [INFO] Finished at: 2018-10-01T10:19:12-04:00
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.0.0-M1:javadoc (default-cli) on project wildfly-elytron: An error has occurred in Javadoc report generation: 
      [ERROR] Exit code: 1 - /home/jucook/Documents/WildFly/WildFly-Elytron/wildfly-elytron/src/main/java/org/wildfly/security/manager/JDKSpecific.java:20: error: cannot find symbol
      [ERROR] import sun.reflect.Reflection;
      [ERROR]                   ^
      [ERROR]   symbol:   class Reflection
      [ERROR]   location: package sun.reflect
      [ERROR] 
      [ERROR] Command line was: /home/jucook/JDKs/Java11/OpenJDK/openjdk-11-ea+26_linux-x64_bin/jdk-11/bin/javadoc @options @argfile
      [ERROR] 
      [ERROR] Refer to the generated Javadoc files in '/home/jucook/Documents/WildFly/WildFly-Elytron/wildfly-elytron/target/site/apidocs/api-javadoc' dir.
      [ERROR] 
      [ERROR] -> [Help 1]
      [ERROR] 
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR] 
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
      

      Attachments

        Activity

          People

            jucook Justin Cook (Inactive)
            darran.lofthouse@redhat.com Darran Lofthouse
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: