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
我检查了它显示的link。它建议将构建环境更新为所需的 Maven 版本。我搜索了它,但发现要在 pom.xml 中进行某些更改。但没有任何效果。谁能告诉我如何解决这个问题。我安装的 Maven 版本是 3.0.5
.
您至少需要 3.1 版,并且您有 3.0.5 版。您所要做的就是下载更新版本的 maven,将您的环境变量指向它,您应该没问题。当前maven版本为3.2.5
要运行这个插件,你至少需要maven 3.1.0版本。从此处安装它 (http://maven.apache.org/download.cgi),然后通过在命令行中执行以下命令检查它是否正确安装:
mvn -version
有同样的问题。解决方案很简单。 Eclipse 期望 Maven 根目录有 bin
、boot
、conf
和 lib
子文件夹。该根文件夹不是(在我的例子中)/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 - 您会看到该版本被设置为 "bundled" - 将其设置为您的 Maven 下载目录,然后将构建应用引擎插件。
我是 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
我检查了它显示的link。它建议将构建环境更新为所需的 Maven 版本。我搜索了它,但发现要在 pom.xml 中进行某些更改。但没有任何效果。谁能告诉我如何解决这个问题。我安装的 Maven 版本是 3.0.5
.
您至少需要 3.1 版,并且您有 3.0.5 版。您所要做的就是下载更新版本的 maven,将您的环境变量指向它,您应该没问题。当前maven版本为3.2.5
要运行这个插件,你至少需要maven 3.1.0版本。从此处安装它 (http://maven.apache.org/download.cgi),然后通过在命令行中执行以下命令检查它是否正确安装:
mvn -version
有同样的问题。解决方案很简单。 Eclipse 期望 Maven 根目录有 bin
、boot
、conf
和 lib
子文件夹。该根文件夹不是(在我的例子中)/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 - 您会看到该版本被设置为 "bundled" - 将其设置为您的 Maven 下载目录,然后将构建应用引擎插件。