Wednesday 17 July 2013

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile

 For this error you have to change JDK in your project..
Solution:
Step 1 : Right Click on  your project in Eclipse project Properties
Step 2 : Java Build Path >Libraries
Step 3 : Click on JRE > Edit > Installed JRE


Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project FundTransfer: Compilation failure
[ERROR] Unable to locate the Javac Compiler in:
[ERROR] C:\Program Files\Java\jre7\..\lib\tools.jar
[ERROR] Please ensure you are using JDK 1.4 or above and
[ERROR] not a JRE (the com.sun.tools.javac.Main class is required).
[ERROR] In most cases you can change the location of your Java
[ERROR] installation by setting the JAVA_HOME environment variable.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.

Solution by images step by step

Step 1 : Right Click on  your project in Eclipse project Properties

 Step 2 : Java Build Path >Libraries
 And after that click on JRE library so that Edit button will be enabled.
 Now click on Installed JRE button.

 Click on this line
Now change your JDK path
C:\ProgramFiles\Java .. under this path you will get JDK folder. give that folder and click on finish.





No comments:

Post a Comment