gpt4 book ai didi

java - 运行 AppFuse 项目时出现错误 : "Failed to execute goal on project"

转载 作者:行者123 更新时间:2023-12-01 14:28:14 25 4
gpt4 key购买 nike

我正在使用 AppFuse,我想创建一个多模块项目。我试图遵循 AppFuse quick start guide所以我使用以下命令来创建项目:

mvn archetype:generate -B -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-modular-jsf-archetype -DarchetypeVersion=2.2.1 -DgroupId=com.mycompany -DartifactId=myproject -DarchetypeRepository=http://oss.sonatype.org/content/repositories/appfuse

然后我收到“BUILD SUCCESS”消息,但在运行以下命令(用于运行应用程序)后:

Path/myproject/web ---> mvn jetty:run

我遇到了这个错误:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4:46.317s
[INFO] Finished at: Mon Jun 10 11:33:50 PDT 2013
[INFO] Final Memory: 10M/95M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project myproject-web: Could not resolve dependencies for project com.mycompany:myproject-web:war:1.0-SNAPSHOT: Could not find artifact com.mycompany:myproject-core:jar:1.0-SNAPSHOT in appfuse-snapshots (http://oss.sonatype.org/content/repositories/appfuse-snapshots) -> [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

不幸的是,我在 ubuntu 13.04 和 win 8 中都遇到了这个错误。

我该如何解决?

最佳答案

正如您所说,您正在使用模块化 appfuse 应用程序。

在appfuse模块化应用程序中存在两个模块:coreweb。Web模块依赖于核心模块。

所以您应该首先安装核心模块。在您的核心模块目录中尝试以下代码:

mvn install

关于java - 运行 AppFuse 项目时出现错误 : "Failed to execute goal on project",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17018854/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com