Uploaded image for project: 'Maven Site Plugin'
  1. Maven Site Plugin
  2. MSITE-794

Cannot run site goal with Java 9

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 3.3, 3.4, 3.5, 3.6
    • None
    • site:stage(-deploy)
    • None

    Description

      Running the site goal with Java 9 (without the -ea designator) fails:

      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.3:site (default-site) on project pfl-basic: Execution default-site of goal org.apache.maven.plugins:maven-site-plugin:3.3:site failed: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-site-plugin:3.3:site: java.lang.ExceptionInInitializerError: null
      -
      

      using the -X gives the stack trace:

      Caused by: java.lang.ExceptionInInitializerError
      	at org.apache.maven.plugin.javadoc.AbstractJavadocMojo.<clinit>(AbstractJavadocMojo.java:195)
      	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      
      [snip]
      
      	... 21 more
      Caused by: java.lang.StringIndexOutOfBoundsException: begin 0, end 3, length 1
      	at java.base/java.lang.String.checkBoundsBeginEnd(String.java:3116)
      	at java.base/java.lang.String.substring(String.java:1885)
      	at org.apache.commons.lang.SystemUtils.getJavaVersionAsFloat(SystemUtils.java:1133)
      	at org.apache.commons.lang.SystemUtils.<clinit>(SystemUtils.java:818)
      	... 63 more
      

      Attachments

        Activity

          People

            rfscholte Robert Scholte
            russgold Russell Gold
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: