title: UnsupportedClassVersionError: org/apache/maven/plugin/compiler/TestCompilerMojo
body: <p>I am new to Maven. On Eclipse I am getting following error in pom.xml :-</p>
  
  <p>"Multiple annotations found at this line:</p>
  
  <ul>
  <li><p>CoreException: Could not get the value for parameter compilerId for plugin execution default-testCompile: TypeNotPresentException: Type 
  org.apache.maven.plugin.compiler.TestCompilerMojo not present: UnsupportedClassVersionError: org/apache/maven/plugin/compiler/TestCompilerMojo : Unsupported 
  major.minor version 51.0</p></li>
  <li><p>Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:3.7.0:testCompile (execution: default-testCompile, phase: 
  test-compile)</p></li>
  <li><p>maven-enforcer-plugin (goal ""enforce"") is ignored by m2e.</p></li>
  </ul>
  
  <p>I have upgraded from Java 1.6 to Java 1.8. So I also started using new maven 3.5.2. And updated maven-compiler-plugin from 2.3.2 to 3.7.0 in super-pom.
  Kindly help in debugging.</p>
  
  <p>pom.xml where I am getting error:  tag</p>
  
  <pre><code>  &lt;parent&gt;
      &lt;groupId&gt;com.abcdef.xyz&lt;/groupId&gt;
      &lt;artifactId&gt;dev-main&lt;/artifactId&gt;
      &lt;version&gt;8.1.1-SNAPSHOT&lt;/version&gt;
    &lt;/parent&gt;
  </code></pre>
  
  <p>Note: I am able to build successfully on git bash. The error is only shown in pom.xml in Eclipse.</p>