繁体   English   中英

Maven项目未能建成

[英]Maven project failed to build

我是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 root拥有binbootconflib子文件夹。 那根文件夹不是(在我的情况下) /usr/local/Cellar/maven32/3.2.5 ,而是/usr/local/Cellar/maven32/3.2.5/libexec 请注意,正确的是一个文件夹更深。

对于因为intellj中的这个错误而找到这个帖子的可怜的灵魂...

我的M2_HOME和maven环境都设置为现代版本的maven,但仍然出现此错误。 在你的intellij首选项中搜索“maven”,你会看到IntelliJ使用的默认版本是3.0.5 - 你会看到版本被设置为“捆绑” - 将它设置为你的maven下载导演和app引擎插件将建立。

要执行此插件,至少需要maven 3.1.0版。 从这里安装它( http://maven.apache.org/download.cgi ),然后在命令行中执行以下命令检查它是否正确安装:

mvn -version

你需要至少有3.1版本,你有3.0.5。 你应该做的就是下载一个更新版本的maven指向你的环境变量,你应该没问题。 当前版本的maven是3.2.5

https://maven.apache.org/download.cgi

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM