You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using a JDK v16+ to build the war file produces the following error.
pushd modules/war
mvn package
ExceptionInInitializerError: Unable to make field private final java.util.Comparator java.util.TreeMap.comparator accessible: module java.base does not "opens java.util" to unnamed module...
The war file builds successfully if JDK v11 through v15 is used.
Suggested fix, one of:
A: Update the maven-war-plugin version (might break compatibility with other JDKs)
B: Set the JDK version in the POM file to one of JDK v11 - v15 (I haven't tested this)
C: Update the documentation to instruct the user to build with one of JDK v11 - v15
Please let me know what you prefer, and I'll create a PR.
The text was updated successfully, but these errors were encountered:
what-the-functor
changed the title
maven-war-plugin v2.3 incompatible with recent JDK 16+
maven-war-plugin v2.3 incompatible with JDK 16+
Feb 1, 2024
Using a JDK v16+ to build the war file produces the following error.
pushd modules/war mvn package
The war file builds successfully if JDK v11 through v15 is used.
Suggested fix, one of:
Please let me know what you prefer, and I'll create a PR.
The text was updated successfully, but these errors were encountered: