title: Unable to build Java project targeting JDK 11, Invalid target release 11
body: <p>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:</p>
  
  <p>pom.xml:</p>
  
  <pre><code>&lt;properties&gt;
    &lt;java.version&gt;11&lt;/java.version&gt;
    &lt;maven.compiler.source&gt;${java.version}&lt;/maven.compiler.source&gt;
    &lt;maven.compiler.target&gt;${java.version}&lt;/maven.compiler.target&gt;
  &lt;/properties&gt;
  </code></pre>
  
  <p>pom.xml:</p>
  
  <pre><code>&lt;plugin&gt;
      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
      &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
      &lt;version&gt;${maven.compiler.plugin.version}&lt;/version&gt;
      &lt;configuration&gt;
          &lt;compilerId&gt;javac-with-errorprone&lt;/compilerId&gt;
          &lt;forceJavacCompilerUse&gt;true&lt;/forceJavacCompilerUse&gt;
              &lt;useIncrementalCompilation&gt;false&lt;/useIncrementalCompilation&gt;
  
          &lt;compilerArgs&gt;
              &lt;arg&gt;-Xep:ParameterName:OFF&lt;/arg&gt;
          &lt;/compilerArgs&gt;
          &lt;compilerArguments&gt;
              &lt;endorseddirs&gt;${endorsed.dir}&lt;/endorseddirs&gt;
          &lt;/compilerArguments&gt;
       &lt;/configuration&gt;
       &lt;dependencies&gt;
          &lt;dependency&gt;
            &lt;groupId&gt;org.codehaus.plexus&lt;/groupId&gt;
            &lt;artifactId&gt;plexus-compiler-javac-errorprone&lt;/artifactId&gt;
            &lt;version&gt;2.8.5&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
            &lt;groupId&gt;com.google.errorprone&lt;/groupId&gt;
            &lt;artifactId&gt;error_prone_core&lt;/artifactId&gt;
            &lt;version&gt;${google.error.prone.version}&lt;/version&gt;
          &lt;/dependency&gt;
        &lt;/dependencies&gt;
    &lt;/plugin&gt;
  </code></pre>
  
  <p>I get this error:</p>
  
  <p>CompilerException: InvocationTargetException: invalid target release: 11</p>
  
  <p>I tried following this information:
  <a href="https://stackoverflow.com/questions/49398894/unable-to-compile-simple-java-10-java-11-project-with-maven">Unable to compile simple Java 10 / Java 11 project with Maven</a></p>
  
  <p>However, upgrading ASM did not change anything.</p>