2015-10-03 69 views
1

我安装了最新版本的Netbeans(8.0.2),Maven(4.27.1)作为插件安装(所以默认情况下)。建立这个项目需要Maven(或更高版本)

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

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. 

我可以为了打造这个项目做什么?

+1

选择它这个问题的答案在这里:http://stackoverflow.com/问//14026314/2423066 – jollyjoyce1995

回答

1

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

0

在intellij的设置中有一个叫做maven的选项,你可以在其中设置intellij应该使用的maven版本。

我记得默认IST 3.10左右,但如果你已经安装了Maven的(与其他版本),你可以在设置的IntelliJ

+0

提到的问题使用Netbeans,而不是Intellij Idea。 –

+0

哦抱歉没有读完整个问题,因为错误信息听起来很熟悉 – jollyjoyce1995

相关问题