有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

JavaSpringRoo“执行”挂起

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

然而,OP的解决方案是Maven安装不正确。我运行的是OSX 10.8,默认情况下安装了maven 3.0。万一出现兼容性问题,我升级到了3.1,结果也一样。当我从Roo外部的命令行执行mvn时,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的新手,所以当我没有给它一个目标时,我不确定它应该说什么。显然,它仍然有可能安装错误,我只是不确定我应该寻找什么来证明这一点。有什么想法吗

更新我按照@CodeChimp的建议运行了mvn eclipse:eclipse,它似乎运行正常。它下载了一堆jar文件,这些文件看起来绝对像逻辑依赖项,并以BUILD SUCCESS结尾。我不明白为什么那件事有效而另一件却没有


共 (0) 个答案