java - Maven MojoExecutionException 异常

标签 java maven opendaylight

我遇到了这个问题,当我使用 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/

相关文章:

maven - gradle中实现依赖的maven等价物是什么?

java - 当我安装这个项目时,在 pom.xml 文件中显示错误

ubuntu - 错误消息 : Installing OpenDaylight "java_home"

java - 在 Teamcity 中运行 Gradle Wrapper 时无法通过代理建立隧道

java - @JsonProperty 没有覆盖 boolean 值并且仍然删除 `is`

java - 模块中的自定义 View 未显示在 android studio 调色板中

java - 如何使用 Maven 在 WAR、WEB-INF/lib 目录中包含特定的 jar

Opendaylight:获取有关流量缺失事件的通知

ubuntu - Opendaylight、Mininet 和 Ubuntu。没有ARP,没有ping

java - 没有警告的通用接口(interface)比较器