码迷,mamicode.com
首页 > Web开发 > 详细

(报错记录)Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:

时间:2015-04-24 12:03:46      阅读:112      评论:0      收藏:0      [点我收藏+]

标签:

Console:

[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project clothing: Compilation failure
[ERROR] Unable to locate the Javac Compiler in:
[ERROR] C:\Program Files\Java\jre6\..\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.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

解决方法:在eclipse中,window-prefefence-java-Installed JREs,将Installed Jres的路径改为指向jdk,不要指向jre.(原因本人尚且不明)。

解决链接:http://bbs.csdn.net/topics/380145658

 

(报错记录)Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:

标签:

原文地址:http://www.cnblogs.com/linyuhuan/p/4453002.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!