Unable to build Java project targeting JDK 11, Invalid target release 11
I have JDK 11 installed along with Maven 3.6.2 and am using error prone to compile my Java maven projects. With this configuration:
pom.xml:
11
${java.version}
${java.version}
pom.xml:
org.apache.maven.plugins
maven-compiler-plugin
${maven.compiler.plugin.version}
javac-with-errorprone
true
false
-Xep:ParameterName:OFF
${endorsed.dir}
org.codehaus.plexus
plexus-compiler-javac-errorprone
2.8.5
com.google.errorprone
error_prone_core
${google.error.prone.version}
I get this error:
CompilerException: InvocationTargetException: invalid target release: 11
I tried following this information: Unable to compile simple Java 10 / Java 11 project with Maven
However, upgrading ASM did not change anything.