apache-nifi - 如何在 IDE 和 Build 中获取 NiFi UI 代码,因为那里与其他模块紧密耦合
问题描述
如何在 IDE(Eclipse) 和 Build 中获取 NiFi UI 代码,因为它们与其他模块紧密耦合。在哪个模块中存在与 UI 相关的内容以及如何构建。
我发现https://github.com/apache/nifi/tree/ea9b0db2f620526c8dd0db595cf8b44c3ef835be/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web是存在 UI 相关代码的地方。如果这是正确的路径,那么我该如何导入和构建。
解决方案
As you have found, the nifi-web module is part of nifi-framework, and nifi-framework is packaged as a NAR which is deployed to NiFi's lib directory.
The general process would be...
- Modify code in nifi-web
- Run mvn clean package or install on nifi-framework-bundle
- Copy
nifi-framework-bundle/nifi-framework-nar/targer/nifi-framework-nar-<version>.nar
to the lib directory of wherever you are running the application from, typically this would be something likenifi-assembly/target/nifi-1.10.0-SNAPSHOT-bin/nifi-1.10.0-SNAPSHOT
I can't speak to anything about Eclipse, but in Intellij you just import all modules from the root pom.
推荐阅读
- python - 路径之和 III - Leetcode
- powershell - 电源外壳解决方案检查器脚本问题
- python - 如何自动化从具有多个部分的 CSV 文件中读取的脚本?
- matter.js - 如何从身体中获得约束
- c - 了解嵌入式 C 中的 I/O 内存位置
- postgresql - 可以在端口 22 上连接到 Azure VM,但不能在端口 5111 上连接
- javascript - 如何使用带有反应本机和javascript的特定协议处理远程服务器的加密请求和答案
- git - Git混淆命令进行部署
- php - 如何在 Apache2.4 中打开“Pathinfo”
- google-sheets - 如何在同一张工作表中使用现有的谷歌电子表格(带有公式和格式)作为模板