首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Ninja框架安装错误与Maven

Ninja框架安装错误与Maven
EN

Stack Overflow用户
提问于 2014-05-19 17:42:48
回答 1查看 475关注 0票数 0

我正在努力学习忍者框架,用于在RESTful上构建here web服务

在新创建的maven项目文件夹中运行"mvn清洁安装“时,我得到了以下错误:

代码语言:javascript
复制
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.610 s
[INFO] Finished at: 2014-05-19T11:39:50-07:00
[INFO] Final Memory: 11M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project ninja: Fatal error compiling: invalid target release: 1.7 -> [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

如果这件事重要的话,我是在使用Java 8的Mac小牛队。谢谢

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-05-19 21:27:56

这听起来可能很傻,但是我通过在我的Mac上的路径中添加JAVA_HOME来解决这个问题,否则,maven仍然在我的计算机上使用Java1.6(我已经安装了Java1.8)。

代码语言:javascript
复制
export JAVA_HOME=$(/usr/libexec/java_home)
票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/23743970

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档