当尝试构建混合Java / Scala项目(使用org.apache.nifi:nifi-processor-bundle-archetype
项目的自定义NiFi处理器)时,构建(mvn clean compile
)会因以下原因而在早期阶段失败:
[ERROR] Failed to execute goal org.apache.maven.plugins: \
maven-remote-resources-plugin:1.5:process (process-resource-bundles) \
on project nifi-example-processors: Error finding remote resources manifests: \
/home/user/code/example/nifi-example-processors/ \
target/maven-shared-archive-resources/META-INF/NOTICE \
(No such file or directory) -> [Help 1]
同一版本可在另一台计算机(Ubuntu 18)上运行,但不能在此Centos 6机器上运行。这是什么问题?
答案 0 :(得分:2)
该错误消息具有误导性。
问题是无法创建target
子目录。奇怪的是,Maven并没有给出错误提示,而是在缺少该子目录中的预期文件之一时给出了错误提示。
在将项目从一台机器/网络复制到另一台机器/网络的过程中,项目中的顶级目录(nifi-example-processors
等)失去了写权限。
要解决此问题,只需向这些目录添加写权限(chmod -R u+w
)(并检查它们的所有权是否符合预期!)。