title: IntelliJ: Fatal error compiling: invalid target release: 1.8
body: <p>I'm running a Java Maven project on IntelliJ, and I make sure that this project will be compiled by Java 1.8. </p>
  
  <p>I set JRE to version 8 in Run/Debug Configuration
  <a href="https://i.stack.imgur.com/Sx3ec.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Sx3ec.png" alt="enter image description here"></a></p>
  
  <p>and also in Project Structure: 
  <a href="https://i.stack.imgur.com/60rET.png" rel="noreferrer"><img src="https://i.stack.imgur.com/60rET.png" alt="enter image description here"></a>
  My pom.xml file also includes java version 8 by the following:</p>
  
  <pre><code>&lt;properties&gt;
      &lt;maven.compiler.source&gt;1.8&lt;/maven.compiler.source&gt;
      &lt;maven.compiler.target&gt;1.8&lt;/maven.compiler.target&gt;
  &lt;/properties&gt;
  </code></pre>
  
  <p>and</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.1&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>
  
  <p>I also set Java compiler option to version 1.8.<a href="https://i.stack.imgur.com/f1xFT.png" rel="noreferrer"><img src="https://i.stack.imgur.com/f1xFT.png" alt="enter image description here"></a></p>
  
  <p>When I run the project, I get an error: </p>
  
  <blockquote>
    <p>Failed to execute goal
    org.apache.maven.plugins:maven-compiler-plugin:3.0:compile
    (default-compile) on project feed_matcher: Fatal error compiling:
    invalid target release: 1.8 -> [Help 1]</p>
  </blockquote>
  
  <p>Do you know how to resolve this issue? </p>
  
  <p>P.S I followed this link: <a href="https://stackoverflow.com/questions/12900373/idea-javac-source-release-1-7-requires-target-release-1-7">IDEA: javac: source release 1.7 requires target release 1.7</a> and I still couldn't resolve the problem.</p>