Uploaded image for project: 'JBoss Modules'
  1. JBoss Modules
  2. MODULES-385

Fix Javadoc Build issues on JDK 11+

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.9.0.Final
    • Fix Version/s: 1.9.1.Final
    • Component/s: Build
    • Labels:
      None

      Description

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.0.1:javadoc (default-cli) on project jboss-modules: An error has occurred in Javadoc report generation:
      [ERROR] Exit code: 1 - /home/opalka/git/redhat/jboss-modules/src/main/java/org/jboss/modules/JDKSpecific.java:37: 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/opalka/java/jdk/oracle/12/latest/bin/javadoc @options @packages
      [ERROR]
      [ERROR] Refer to the generated Javadoc files in '/home/opalka/git/redhat/jboss-modules/target/site/apidocs' dir.

      -------

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.0.1:javadoc (default-cli) on project jboss-modules: 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] /home/opalka/git/redhat/jboss-modules/src/main/java/org/jboss/modules/maven/MavenArtifactUtil.java:197: warning - @param argument "name" is not a parameter name.
      [ERROR] /home/opalka/git/redhat/jboss-modules/src/main/java/org/jboss/modules/xml/XmlPullParser.java:548: warning - invalid usage of tag <
      [ERROR] /home/opalka/git/redhat/jboss-modules/src/main/java/org/jboss/modules/xml/XmlPullParser.java:595: warning - invalid usage of tag >
      [ERROR] /home/opalka/git/redhat/jboss-modules/src/main/java/org/jboss/modules/xml/XmlPullParser.java:630: warning - invalid usage of tag >
      [ERROR] /home/opalka/git/redhat/jboss-modules/src/main/java/org/jboss/modules/xml/XmlPullParser.java:916: warning - invalid usage of tag >
      [ERROR] /home/opalka/git/redhat/jboss-modules/src/main/java/org/jboss/modules/xml/XmlPullParser.java:918: warning - invalid usage of tag >
      [ERROR] /home/opalka/git/redhat/jboss-modules/src/main/java/org/jboss/modules/xml/XmlPullParser.java:918: warning - invalid usage of tag >
      [ERROR] /home/opalka/git/redhat/jboss-modules/src/main/java/org/jboss/modules/xml/XmlPullParser.java:953: warning - invalid usage of tag >
      [ERROR] /home/opalka/git/redhat/jboss-modules/src/main/java/org/jboss/modules/xml/XmlPullParser.java:955: warning - invalid usage of tag >
      [ERROR] /home/opalka/git/redhat/jboss-modules/src/main/java/org/jboss/modules/xml/XmlPullParser.java:964: warning - invalid usage of tag >
      [ERROR] /home/opalka/git/redhat/jboss-modules/src/main/java/org/jboss/modules/xml/XmlPullParser.java:967: warning - invalid usage of tag >
      [ERROR] /home/opalka/git/redhat/jboss-modules/src/main/java/org/jboss/modules/xml/XmlPullParser.java:970: warning - invalid usage of tag >
      [ERROR] /home/opalka/git/redhat/jboss-modules/src/main/java/org/jboss/modules/xml/XmlPullParser.java:972: warning - invalid usage of tag >
      [ERROR] /home/opalka/git/redhat/jboss-modules/src/main/java/org/jboss/modules/xml/XmlPullParser.java:990: warning - invalid usage of tag >
      [ERROR] /home/opalka/git/redhat/jboss-modules/src/main/java/org/jboss/modules/xml/XmlPullParser.java:993: warning - invalid usage of tag >
      [ERROR] /home/opalka/git/redhat/jboss-modules/src/main/java/org/jboss/modules/xml/XmlPullParser.java:993: warning - invalid usage of tag >
      [ERROR] /home/opalka/git/redhat/jboss-modules/src/main/java/org/jboss/modules/xml/XmlPullParser.java:90: warning - invalid usage of tag >
      [ERROR] /home/opalka/git/redhat/jboss-modules/src/main/java/org/jboss/modules/xml/XmlPullParser.java:90: warning - invalid usage of tag >
      [ERROR] /home/opalka/git/redhat/jboss-modules/src/main/java/org/jboss/modules/xml/XmlPullParser.java:548: warning - invalid usage of tag <
      [ERROR] /home/opalka/git/redhat/jboss-modules/src/main/java/org/jboss/modules/xml/XmlPullParser.java:595: warning - invalid usage of tag >
      [ERROR] /home/opalka/git/redhat/jboss-modules/src/main/java/org/jboss/modules/xml/XmlPullParser.java:630: warning - invalid usage of tag >
      [ERROR] /home/opalka/git/redhat/jboss-modules/src/main/java/org/jboss/modules/xml/XmlPullParser.java:916: warning - invalid usage of tag >
      [ERROR] /home/opalka/git/redhat/jboss-modules/src/main/java/org/jboss/modules/xml/XmlPullParser.java:918: warning - invalid usage of tag >
      [ERROR] /home/opalka/git/redhat/jboss-modules/src/main/java/org/jboss/modules/xml/XmlPullParser.java:918: warning - invalid usage of tag >
      [ERROR] /home/opalka/git/redhat/jboss-modules/src/main/java/org/jboss/modules/xml/XmlPullParser.java:953: warning - invalid usage of tag >
      [ERROR] /home/opalka/git/redhat/jboss-modules/src/main/java/org/jboss/modules/xml/XmlPullParser.java:955: warning - invalid usage of tag >
      [ERROR] /home/opalka/git/redhat/jboss-modules/src/main/java/org/jboss/modules/xml/XmlPullParser.java:964: warning - invalid usage of tag >
      [ERROR] /home/opalka/git/redhat/jboss-modules/src/main/java/org/jboss/modules/xml/XmlPullParser.java:967: warning - invalid usage of tag >
      [ERROR] /home/opalka/git/redhat/jboss-modules/src/main/java/org/jboss/modules/xml/XmlPullParser.java:970: warning - invalid usage of tag >
      [ERROR] /home/opalka/git/redhat/jboss-modules/src/main/java/org/jboss/modules/xml/XmlPullParser.java:972: warning - invalid usage of tag >
      [ERROR] /home/opalka/git/redhat/jboss-modules/src/main/java/org/jboss/modules/xml/XmlPullParser.java:990: warning - invalid usage of tag >
      [ERROR] /home/opalka/git/redhat/jboss-modules/src/main/java/org/jboss/modules/xml/XmlPullParser.java:993: warning - invalid usage of tag >
      [ERROR] /home/opalka/git/redhat/jboss-modules/src/main/java/org/jboss/modules/xml/XmlPullParser.java:993: warning - invalid usage of tag >
      [ERROR]
      [ERROR] Command line was: /home/opalka/java/jdk/oracle/12/latest/bin/javadoc @options @argfile
      [ERROR]
      [ERROR] Refer to the generated Javadoc files in '/home/opalka/git/redhat/jboss-modules/target/site/apidocs' 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

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                ropalka Richard Opalka
                Reporter:
                ropalka Richard Opalka
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: