1

我无法让 Roo 生成必要的 eclipse 配置文件。每当我执行perform eclipse(或任何其他perform命令)时,shell 都会挂起而不会出错,我被迫 ^C 杀死它。我已经查看了日志,没有任何消息存在、错误或其他。我做了一些谷歌搜索,发现这篇文章准确描述了我遇到的问题。

但是,OP 的解决方案是 Maven 安装不正确。我正在运行 OSX 10.8,它默认安装了 maven 3.0。万一出现兼容性问题,我升级到 3.1,结果相同。当我mvn从 Roo 外部的命令行执行时,maven 似乎可以正常执行,但会出现以下错误:

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.139s
[INFO] Finished at: Wed Sep 11 10:33:25 PDT 2013
[INFO] Final Memory: 2M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-site, site, post-site, site-deploy, pre-clean, clean, post-clean. -> [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/NoGoalSpecifiedException

这似乎表明 maven 运行正常,尽管 pom 文件中没有必要的配置。我是 maven 的菜鸟,所以当我没有给它一个目标时,我不确定它应该在那里说什么。显然它仍然有可能安装不正确,我只是不确定我应该寻找什么来证明这种或另一种方式。有什么想法吗?

更新mvn eclipse:eclipse按照@CodeChimp 的建议运行,它似乎工作正常。它下载了一堆看起来像逻辑依赖的 jar 文件,并以BUILD SUCCESS. 我不知道为什么在另一个没有的情况下有效。

4

0 回答 0