gpt4 book ai didi

java - Maven项目构建失败

转载 作者:塔克拉玛干 更新时间:2023-11-01 22:09:05 25 4
gpt4 key购买 nike

我是 Maven 项目的新手。我将现有的 Maven 项目导入到 eclipse 中,然后进行了新的配置。然后我尝试运行该应用程序,但控制台显示

[ERROR] Failed to execute goal com.google.appengine:appengine-maven-plugin:1.9.4:devserver (default-cli) on project helloworld: The plugin com.google.appengine:appengine-maven-plugin:1.9.4 requires Maven version 3.1.0 -> [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/PluginIncompatibleException

我检查了它显示的链接。它建议将构建环境更新为所需的 Maven 版本。我搜索了它,但发现要在 pom.xml 中进行某些更改。但没有任何效果。谁能告诉我如何解决这个问题。我安装的 Maven 版本是 3.0.5

最佳答案

遇到了同样的问题。解决方案很简单。 Eclipse 期望 Maven 根目录有 binbootconflib 子文件夹。该根文件夹不是(在我的例子中)/usr/local/Cellar/maven32/3.2.5,而是 /usr/local/Cellar/maven32/3.2.5/libexec。请注意,正确的是更深一个文件夹。

关于java - Maven项目构建失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28948235/

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