Friday, April 17, 2015

Maven Error :

We some time face below error while building java project using Maven.
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.0:compile (default-compile) on project api: Fatal error compiling: invalid target release: 1.7

The reason for this error is jdk version mismatch in classpath variable and pom.xml.

Please change your variableJava_Home in classpath as per pom.xml or change variable in pom.xml as per Java_Home classpath.

Change Java_Home in classpath:
MyComputer ==> prperties ==> Advanc Settings ==> Environment Variables





Change here variable value as per above discussion.