title: Maven Compilation Error: Fatal error compiling: invalid target release: 1.8
body: <p>Similar problem as posted in <a href="https://stackoverflow.com/questions/28291691/fatal-error-compiling-invalid-target-release-1-8-help-1">Fatal error compiling: invalid target release: 1.8 -&gt; [Help 1]</a>
  However, problem is not solved after I check my settings with the solutions. Details is as follows. </p>
  
  <p>Maven Error Message is: </p>
  
  <pre><code>[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-compile) on project: Fatal error compiling: invalid target release: 1.8 -&gt; [Help 1]
  </code></pre>
  
  <p>My JAVA_HOME setting is: </p>
  
  <pre><code>C:\Program Files\Java\jdk1.8.0_40
  </code></pre>
  
  <p>Java -version: </p>
  
  <pre><code>java version "1.8.0_40"
  Java(TM) SE Runtime Environment (build 1.8.0_40-b26)
  Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)
  </code></pre>
  
  <p>I've added compilation detail to pom. </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;3.2&lt;/version&gt;
          &lt;configuration&gt;
              &lt;source&gt;1.8&lt;/source&gt;
              &lt;target&gt;1.8&lt;/target&gt;
          &lt;/configuration&gt;
      &lt;/plugin&gt;
  </code></pre>