Public bug reported:

*System info*:
```
$ lsb_release -rd
Description:    Ubuntu 20.04.2 LTS
Release:        20.04

$ apt-cache policy maven
maven:
  Installed: 3.6.3-1
  Candidate: 3.6.3-1
  Version table:
 *** 3.6.3-1 500
        500 http://ch.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
        500 http://ch.archive.ubuntu.com/ubuntu focal/universe i386 Packages
        100 /var/lib/dpkg/status

$ apt-cache policy openjdk-16-jdk
openjdk-16-jdk:
  Installed: 16.0.1+9-1~20.04
  Candidate: 16.0.1+9-1~20.04
  Version table:
 *** 16.0.1+9-1~20.04 500
        500 http://ch.archive.ubuntu.com/ubuntu focal-updates/universe amd64 
Packages
        500 http://security.ubuntu.com/ubuntu focal-security/universe amd64 
Packages
        500 http://ppa.launchpad.net/openjdk-r/ppa/ubuntu focal/main amd64 
Packages
        100 /var/lib/dpkg/status
```

*Summary*
Maven 3.6.3-1 apparently fails to run with OpenJDK 16. It seems to be a bug and 
was fixed in Maven 3.6.3-2 (and above) according to 
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=980467.

*Expected behaviour*
I expect to be able to use maven with all currently supported General 
Availability Java versions.

*Observed behaviour*
I installed OpenJDK 16 (via PPA, see version above) and tried to compile a 
Maven project, producing the following output:
```
$ mvn compile
[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

$ echo $?
1
```

Thanks and kind regards, 
-Manu

** Affects: maven (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1930541

Title:
  Maven 3.6.3-1 fails to run with OpenJDK 16

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/maven/+bug/1930541/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to