title: Java Maven Project "Source option 5 is no longer supported. Use 6 or later."
body: <p>I'm following a PluralSight course, "Spring Framework: Spring Fundamentals" by Bryan Hansen. I've followed the demo precisely (I believe) but am getting the error message "Error:java: Source option 5 is no longer supported. Use 6 or later.".</p>
  
  <p>I'm using the latest version of IntelliJ, with the following configurations:</p>
  
  <ul>
  <li>Under "Preferences > Build, Execution, Deployment > Compiler > Java Compiler" I have the project bytecode version set to Java 11 and the per-module bytecode version to "Same as language level".</li>
  <li>Under "File > Project Structure > Project" I have the project SDK set to 11 and project language level set to 11 as well.</li>
  <li>Have my pom.xml with the following build settings:</li>
  </ul>
  
  <pre><code>
      &lt;build&gt;
              &lt;plugins&gt;
                  &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.8.1&lt;/version&gt;
                      &lt;configuration&gt;
                          &lt;source&gt;11&lt;/source&gt;
                          &lt;target&gt;11&lt;/target&gt;
                      &lt;/configuration&gt;
                  &lt;/plugin&gt;
              &lt;/plugins&gt;
          &lt;/build&gt;
  
  </code></pre>
  
  <p>I've looked at some other similar posts, and they seem  to sometimes have the above configuration as 1.6 instead of 11, but I'm trying to follow this tutorial closely. Am still curious as to the discrepancy here.</p>
  
  <p>Not sure what's casuing this error to be thrown, as far as I can tell I've got everything set up correctly but clearly that's not the case. Any help would be appreciated.</p>