[ 
https://issues.apache.org/jira/browse/MNG-7135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17350122#comment-17350122
 ] 

Mike Jumper commented on MNG-7135:
----------------------------------

We were seeing this recently as well for CI builds against JDK 16 on the ASF 
Jenkins:

https://ci-builds.apache.org/job/Guacamole/job/guacamole-client-master/JENKINS_LABEL_EXPRESSION=ubuntu,jdk=jdk_16_latest/55/consoleFull

I don't know what version of Maven was installed on the Ubuntu nodes at the 
time, nor what may have changed in the environment since then, but the failure 
stopped occurring on its own:

https://ci-builds.apache.org/job/Guacamole/job/guacamole-client-master/JENKINS_LABEL_EXPRESSION=ubuntu,jdk=jdk_16_latest/56/consoleFull

> maven crashes with jdk 16
> -------------------------
>
>                 Key: MNG-7135
>                 URL: https://issues.apache.org/jira/browse/MNG-7135
>             Project: Maven
>          Issue Type: Bug
>         Environment: Linux Mint  20.1  
>            Reporter: J. K. Singer
>            Priority: Major
>             Fix For: waiting-for-feedback, wontfix-candidate
>
>
> Maven does not work with JDK 16, still works with JDK 15, albeit with warning
>  
> export JAVA_HOME=/opt/jdk-15
> mvn archetype:generate -DarchetypeArtifactId=maven-archetype-quickstart 
> -DarchetypeVersion=1.4 -DgroupId="com.example" -DartifactId="FailDemo" 
> -Dpackage="com.example.FailDemo" -DinteractiveMode=false
> WARNING: An illegal reflective access operation has occurred
> WARNING: Illegal reflective access by 
> com.google.inject.internal.cglib.core.$ReflectUtils$1 
> (file:/usr/share/maven/lib/guice.jar) to method 
> java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
> export JAVA_HOME=/opt/jdk-16
> mvn archetype:generate -DarchetypeArtifactId=maven-archetype-quickstart 
> -DarchetypeVersion=1.4 -DgroupId="com.example" -DartifactId="FailDemo" 
> -Dpackage="com.example.FailDemo"  -DinteractiveMode=false
> [ERROR] Error executing Maven.
> [ERROR] java.lang.IllegalStateException: Unable to load cache item
> [ERROR] Caused by: Unable to load cache item
> [ERROR] Caused by: Could not initialize class 
> com.google.inject.internal.cglib.core.$MethodWrapper



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to