gpt4 book ai didi

java - Maven MojoExecutionException 异常

转载 作者:塔克拉玛干 更新时间:2023-11-03 03:13:07 29 4
gpt4 key购买 nike

我遇到了这个问题,当我使用 Maven 部署我的应用程序时,请提出一些解决方案。

错误日志,

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 19.790s
[INFO] Finished at: Wed Apr 23 10:44:13 IST 2014
[INFO] Final Memory: 54M/131M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project clustering.services: Fatal error compiling: tools.jar not found: C:\Program Files\Java\jre7\..\lib\tools.jar -> [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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :clustering.services

提前致谢。

最佳答案

JAVA_HOME 设置为 jdk 而不是 JDK_DIR/jre,参见 this关于如何设置值的问题

关于java - Maven MojoExecutionException 异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23235430/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com