【发布时间】:2015-10-03 21:22:32
【问题描述】:
我安装了最新版本的 Netbeans (8.0.2),并将 Maven (4.27.1) 作为插件安装(默认情况下)。
当我尝试构建最新版本的 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.
我可以做些什么来构建这个项目?
【问题讨论】:
-
这个问题在这里得到解答:stackoverflow.com/q/14026314/2423066