Reputation: 55
I am new to Maven. On Eclipse I am getting following error in pom.xml :-
"Multiple annotations found at this line:
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
Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:3.7.0:testCompile (execution: default-testCompile, phase: test-compile)
maven-enforcer-plugin (goal ""enforce"") is ignored by m2e.
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.
pom.xml where I am getting error: tag
<parent>
<groupId>com.abcdef.xyz</groupId>
<artifactId>dev-main</artifactId>
<version>8.1.1-SNAPSHOT</version>
</parent>
Note: I am able to build successfully on git bash. The error is only shown in pom.xml in Eclipse.
Upvotes: 4
Views: 1849
Reputation: 199
The error seems to be due to older version of m2e eclipse plugin.You can upgrade the m2e plugin or move to neon(if already not moved) as you are on Java 8 and Neon is suitable for it.
Upvotes: 2