java Maven 编译器插件错误 v3.0.3
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/32523254/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Maven compiler plugin error v3.0.3
提问by Santosh Sahu
I am new to maven installation. While executing a .bat file which installs maven, I am getting the below error. Could you please check :
我是 maven 安装的新手。在执行安装 maven 的 .bat 文件时,我收到以下错误。你能不能检查一下:
Launching environment tests
checking Java 4 compile, java 4 run
[ERROR] COMPILATION ERROR :
[ERROR] Failure executing javac, but could not parse the error:
The system cannot find the path specified.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default
-compile) on project devenv-validate: Compilation failure
[ERROR] Failure executing javac, but could not parse the error:
[ERROR] The system cannot find the path specified.
[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 arti
cles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
checking Java 4 compile, java 6 run
[ERROR] COMPILATION ERROR :
[ERROR] Failure executing javac, but could not parse the error:
The system cannot find the path specified.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default
-compile) on project devenv-validate: Compilation failure
[ERROR] Failure executing javac, but could not parse the error:
[ERROR] The system cannot find the path specified.
[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 arti
cles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
checking Java 6 compile, java 6 run
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running TestDevEnvValidator
Java version : Actual [1.6.0_20], expected [1.6.0_20]
Java compiler : Actual [6], expected [6]
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec
Results :
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0
Press any key to continue . . .
Can anyone please have a look and say why it is failing. Thanks in advance.
任何人都可以看看并说出为什么它失败了。提前致谢。
回答by Slava Sotone
The system cannot find the path specified.
该系统找不到指定的路径。
If you are using Windows, please check if the path specified for system variables: Path, JAVA_HOME, M2_HOME, M2.
如果您使用的是Windows,请检查系统变量是否指定了路径:Path、JAVA_HOME、M2_HOME、M2。
Check out this tutorial:
查看本教程:
http://www.tutorialspoint.com/maven/maven_environment_setup.htm
http://www.tutorialspoint.com/maven/maven_environment_setup.htm