java - 使用 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
它在“Ignite tools”步骤中因失败而停止。
它通常使用终端命令构建,但我需要使用 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
,它会建立好的。
推荐阅读
- php - 使用 PHPMailer 将 dompdf 文件作为附件附加,而无需事先将文件保存到磁盘中
- php - 为什么 AJAX 在 WordPress 函数中运行两次
- java - 如何在调用父构造函数之前覆盖子类中的父类属性?
- jquery - jQuery多次调用click
- android - 需要让我的启动画面适合所有设备吗?
- excel - 在excel中从给定范围的行中查找常见行
- c# - Xamarin Forms CollectionView ScrollTo 在外部调用时
- python - 使用过去 24 小时的总和创建新列
- html - 当父级具有弹性方向时如何强制弹性项目不换行:列
- amazon-web-services - AWS Lambda:发送 POST 消息时出现键错误