请问appfuse有什么问题

时间:2011-09-05 15:58:21

标签: java maven appfuse

运行命令时:mvn jetty:在web目录中运行,这是错误信息:

[WARNING] The POM for com.mycompany:core:jar:1.0-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.015s
[INFO] Finished at: Mon Sep 05 23:31:23 CST 2011
[INFO] Final Memory: 5M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project web: Could not resolve dependencies for project com.mycompany:web:war:1.0-SNAPSHOT: Failure to find com.myco
mpany:core:jar:1.0-SNAPSHOT in http://oss.sonatype.org/content/repositories/appfuse-snapshots was cached in the local repository, resolution will not
be reattempted until the update interval of appfuse-snapshots has elapsed or updates are forced -> [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/DependencyResolutionException

3 个答案:

答案 0 :(得分:3)

您还需要从mvn install运行project's root directory

答案 1 :(得分:2)

看起来你有appfuse多模块web项目,你正在构建web模块而没有构建/安装core模块。

引用appfuse quickstart中的说明,突出显示粗体中的相关部分。

  

要查看您的应用程序,请运行mvn jetty:从您的项目中运行   目录(对于模块化项目,您需要运行mvn jetty:run   从项目的web目录(安装核心模块后)。)。

答案 2 :(得分:0)

在您的情况下,您肯定需要从核心目录mvn install。如果这没有帮助,则从根目录运行相同的命令。问题是您的某个模块需要安装,之后才会删除您遇到的错误。