有关Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:co问题解决

网上看到很多有关构建Maven项目启动报错的问题:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:co,一般都是改环境变量,将jre改jar的路径,可是有的时候,这种方式就不一定是有效的。

前提:项目用maven继承,不是单体式,用的eclipse;


更新好了以后,启动的时候就报这种错,我就在网上查了一些资料,我发现我的环境变量都对,我在想会不会是maven的问题,我就将这个项目update了一下,重新启动,就好了;


参考了如下资料:

http://doc.okbase.net/Josh_Persistence/archive/192456.html

https://www.2cto.com/kf/201708/669467.html


我是Java地里的一颗小嫩草。。。。。。。。。

如有错误之处,望指点!

阅读更多

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

01-14

[code=HTML]rn[INFO] ------------------------------------------------------------------------rn[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project clothing: Compilation failurern[ERROR] Unable to locate the Javac Compiler in:rn[ERROR] C:\Program Files\Java\jre6\..\lib\tools.jarrn[ERROR] Please ensure you are using JDK 1.4 or above andrn[ERROR] not a JRE (the com.sun.tools.javac.Main class is required).rn[ERROR] In most cases you can change the location of your Javarn[ERROR] installation by setting the JAVA_HOME environment variable.rn[ERROR] -> [Help 1]rn[ERROR] rn[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.rn[ERROR] Re-run Maven using the -X switch to enable full debug logging.rn[ERROR] rn[ERROR] For more information about the errors and possible solutions, please read the following articles:rn[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExceptionrnrn[/code]rnrn[code=XML]rn rn rn rn org.apache.maven.pluginsrn maven-compiler-pluginrn 2.3.2rn rn 1.6rn 1.6rn UTF-8rn rn rn rn org.apache.maven.pluginsrn maven-war-pluginrn 2.1.1rn rn testrn rn rn rn org.apache.maven.pluginsrn maven-dependency-pluginrn rn rn installrn installrn rn sourcesrn rn rn rn rn rn org.mortbay.jettyrn maven-jetty-pluginrn 6.1.10rn rn 0rn foorn 9999rn rn rn rn start-jettyrn pre-integration-testrn rn runrn rn rn 0rn truern rn rn rn rn rn rn[/code]rn

没有更多推荐了,返回首页