使用netbeans ide构建apache ignite



我想在ubuntu 16.04中使用NetBeans IDE 8.2和maven 3.3.9构建apache ignite源代码,但当我构建它时,它遇到了以下错误:

Failed to execute goal org.codehaus.mojo:flatten-maven-plugin:1.0.1:flatten (flatten) on project ignite-tools: The plugin org.codehaus.mojo:flatten-maven-plugin:1.0.1 requires Maven version 3.2.5 -> [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.
For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginIncompatibleException
After correcting the problems, you can resume the build with the command
mvn <goals> -rf :ignite-tools

并且在"点火工具"步骤中因故障而停止。

它通常是用terminal命令构建的,但我需要用IDE构建它。

我已经修改了Maven版本,但仍然出现了相同的错误。

刚刚检查:您需要向Netbeans提供更新的Maven,而不是内置版本。

您必须转到Tools->Options->Java窗格->Maven选项卡。

Maven Home: Browse...,选择自己下载的Maven版本目录,内置3.0.2<3.2.5.你必须下载一个全新的Maven安装,我想你已经下载了。

您还需要选择[x] Skip tests for builds not related to testing,否则Apache Ignite将不会为您构建(运行所有测试需要24小时左右(。

然后你可以做Run->Clean and Build Project,它会构建得很好。

最新更新