title: Error "Source option 5 is no longer supported. Use 6 or later" on Maven compile
body: <p>I am getting the following error on <code>$ mvn compile</code>:</p>
  <pre><code>[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project Sym360: Compilation failure: Compilation failure: 
  [ERROR] Source option 5 is no longer supported. Use 6 or later.
  [ERROR] Target option 1.5 is no longer supported. Use 1.6 or later.
  [ERROR] -&gt; [Help 1]
  </code></pre>
  <p>Here is the code of my <code>pom.xml</code>:</p>
  <pre><code>&lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; 
   xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
   xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 
   http://maven.apache.org/maven-v4_0_0.xsd&quot;&gt;
   &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
   &lt;groupId&gt;com.test.app&lt;/groupId&gt;
   &lt;artifactId&gt;Tset&lt;/artifactId&gt;
   &lt;packaging&gt;jar&lt;/packaging&gt;
   &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
   &lt;name&gt;Test&lt;/name&gt;
   &lt;url&gt;http://maven.apache.org&lt;/url&gt;
  
   &lt;properties&gt;
     &lt;maven.compiler.source&gt;6&lt;/maven.compiler.source&gt;
     &lt;maven.compiler.target&gt;1.6&lt;/maven.compiler.target&gt;
   &lt;/properties&gt;
  
  &lt;build&gt;
  &lt;pluginManagement&gt;
    &lt;plugins&gt;
      &lt;plugin&gt;
        &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
        &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
        &lt;version&gt;2.22.1&lt;/version&gt;
      &lt;/plugin&gt;
    &lt;/plugins&gt;
  &lt;/pluginManagement&gt;
  &lt;/build&gt;
  &lt;dependencies&gt;
  
  &lt;!-https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium- 
  java --&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
      &lt;artifactId&gt;selenium-java&lt;/artifactId&gt;
      &lt;version&gt;3.14.0&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;!-- https://mvnrepository.com/artifact/org.testng/testng --&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;org.testng&lt;/groupId&gt;
      &lt;artifactId&gt;testng&lt;/artifactId&gt;
      &lt;version&gt;6.14.3&lt;/version&gt;
      &lt;scope&gt;test&lt;/scope&gt;
  &lt;/dependency&gt;
  </code></pre>
     
   
  <p>I tried to add properties in the <code>pom.xml</code> code, but still getting the same error.</p>