我正在尝试从https://github.com/apache/nifi克隆它之后构建Apache NiFi,并且它仍然无法在nifi标准处理器项目上进行测试 . 我打开了surefire-reports目录中的输出文件,然后在目录/ var / test中运行程序"cmd",因为没有这样的文件或目录 . 我第一次运行安装它只需要很少的步骤就可以完成这个操作 . 它们发布在下面 . 我在CentOS Linux VM上以root身份登录 . 在此先感谢您的帮助 .
脚步:
-
cd / tmp
-
git clone https://github.com/apache/nifi
-
cd nifi
-
mvn clean install
[main] ERROR org.apache.nifi.processors.standard.ExecuteProcess - ExecuteProcess [id = a8d6b3a3-befa-4b74-a962-330bd021ec7b]由于java.io.IOException而无法创建进程:无法运行程序“cmd”(在目录“/ var / test”):error = 2,没有这样的文件或目录:java.io.IOException:无法运行程序“cmd”(在目录“/ var / test”中):error = 2,没有这样的文件或目录
1 回答
我相信这是由于最近提交“解决”这张票[1] . 我实际上已经重新打开[2],因为TravisCI失败了,贡献者目前正在修复 .
为了现在构建,你可以通过运行带有正确标志的命令告诉maven "skip tests":
mvn clean install -Dmaven.test.skip=true
[1] https://issues.apache.org/jira/browse/NIFI-2905
[2] https://issues.apache.org/jira/browse/NIFI-2905?focusedCommentId=15603258&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15603258