首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >要构建此项目,需要Maven (或更高版本

要构建此项目,需要Maven (或更高版本
EN

Stack Overflow用户
提问于 2015-10-04 05:22:32
回答 2查看 4K关注 0票数 1

我安装了最新版本的Netbeans (8.0.2),同时安装了Maven (4.27.1)作为插件(所以默认情况下)。

当我尝试构建最新版本的optaplanner (6.3.0)时,我得到异常

代码语言:javascript
复制
Building OptaPlanner examples 6.3.0.Final
------------------------------------------------------------------------

--- maven-enforcer-plugin:1.3.1:enforce (enforce-plugin-versions) @ optaplanner-examples ---

--- maven-enforcer-plugin:1.3.1:enforce (enforce-java-version) @ optaplanner-examples ---

--- maven-enforcer-plugin:1.3.1:enforce (enforce-maven-version) @ optaplanner-examples ---
Rule 0: org.apache.maven.plugins.enforcer.RequireMavenVersion failed with message:
To build this project Maven 3.2.3 (or greater) is required. Please install it.
------------------------------------------------------------------------
BUILD FAILURE
--------------------------------------------------------------

Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:1.3.1:enforce (enforce-maven-version) on project optaplanner-examples: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed. -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

要构建此项目,我可以做些什么?

EN

回答 2

Stack Overflow用户

发布于 2015-10-04 05:25:22

4.27.1可以是Netbeans Maven插件版本,但不是Maven版本(目前还没有Maven 4)。如果您安装了Maven2(而不是3),则需要在设置中找出使用了什么Maven,并可能在您的系统中安装新版本。

票数 1
EN

Stack Overflow用户

发布于 2015-10-04 05:29:46

在intellij的设置中有一个名为maven的选项,您可以在其中设置intellij应该使用的maven版本。

我记得默认的IST3.10左右,但是如果你已经安装了maven (与其他版本),你可以在intellij设置中选择它。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/32927623

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档