Building Custom NAR - How to add config sub directory into NAR?
HI,
I have built a custom processor that uses another java library. This 3rd party JAR requires one sub directory ./data containing a file named config.ini.
I put the NAR into the ./extensions subfolder of NiFi. When NiFi starts up, it unpacks the NAR into the folder
nifi/work/nar/extensions/my-processor-nar-1.0.nar-unpacked/
This folder contains a subfolder NAR-INF.
And this NAR-INF is the location where my subfolder "data" needs to be copied. When I manually copy the folder with the containing config file into NAR-INF, the processor works fine.
But after the next restart of NiFi the subfolder is missing again.
I need the structure of the unpacked NAR to include this:
nifi/work/nar/extensions/my-processor-nar-1.0.nar-unpacked/data/config.ini
Does anyone have an example how I can build the NAR so that this subfolder and file are included?
Like an example pom.xml snippet?
Cheers,
Karsten

