aashish
aashish

Reputation: 55

UnsupportedClassVersionError: org/apache/maven/plugin/compiler/TestCompilerMojo

I am new to Maven. On Eclipse I am getting following error in pom.xml :-

"Multiple annotations found at this line:

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

Answers (1)

aman_41907
aman_41907

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

Related Questions