[ 
https://issues.apache.org/jira/browse/MSITE-794?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Scholte updated MSITE-794:
---------------------------------
    Description: 
Running the site goal with Java 9 (without the -ea designator) fails:
{noformat}
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
-
{noformat}
using the -X gives the stack trace:
{noformat}
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
{noformat}

  was:
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



> Cannot run site goal with Java 9
> --------------------------------
>
>                 Key: MSITE-794
>                 URL: https://issues.apache.org/jira/browse/MSITE-794
>             Project: Maven Site Plugin
>          Issue Type: Bug
>          Components: site:stage(-deploy)
>    Affects Versions: 3.3, 3.4, 3.5, 3.6
>            Reporter: Russell Gold
>
> Running the site goal with Java 9 (without the -ea designator) fails:
> {noformat}
> 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
> -
> {noformat}
> using the -X gives the stack trace:
> {noformat}
> 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
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to