This is a split off of the MarkLogic NIFI Incubator repo which only contains the marklogic specific bundle
If you want to build this marklogic nar bundle for a specific version of Apache NiFi you need to adjust the nifi.version property in the main pom file.
For now this is set to 1.10.0
Be advised! You need java 11 or up!
To build:
-
Execute
mvn clean install
or for parallel build executemvn -T 2.0C clean install
. On a modest development laptop that is a couple of years old, the latter build takes a couple of seconds. After a large amount of output you should eventually see a success message.$ mvn -T 2.0C clean install [INFO] Scanning for projects... [INFO] Inspecting build with total of 7 modules ...couple of hunderd of lines elided... [INFO] Reactor Summary for nifi-marklogic-bundle 1.10.0-incubator: [INFO] [INFO] nifi-marklogic-bundle .............................. SUCCESS [ 1.672 s] [INFO] nifi-marklogic-services-api ........................ SUCCESS [ 1.695 s] [INFO] nifi-marklogic-services-api-nar .................... SUCCESS [ 0.887 s] [INFO] nifi-marklogic-services ............................ SUCCESS [ 4.413 s] [INFO] nifi-marklogic-processors .......................... SUCCESS [ 7.489 s] [INFO] nifi-marklogic-nar ................................. SUCCESS [ 1.752 s] [INFO] nifi-marklogic-services-nar ........................ SUCCESS [ 1.229 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 18.512 s (Wall Clock) [INFO] Finished at: 2020-01-08T12:20:28+01:00 [INFO] ------------------------------------------------------------------------
-
Execute
mvn clean install -DskipTests
to compile tests, but skip running them.
To deploy:
- Copy nifi-marklogic-nar/target/nifi-marklogic-nar-[version].nar to .../nifi-1.10.0/lib.
- Copy nifi-marklogic-services-api-nar/target/nifi-marklogic-services-api-nar-[version].nar to .../nifi-1.10.0/lib.
- Restart nifi