Found a hardcoded path to lib/bootstrap in org.apache.nifi.NiFi class when calling createBootstrapClassLoader() :
There are multiple places where the .\lib directory is defined:
- BOOTSTRAP_LIBS or %LIB_DIR% environment variables in nifi.sh or run-nifi.bat
- lib.dir in bootstrap.conf is most likely it
- nifi.nar.library.directory or nifi.web.war.directory identify the library folder but don't quite refer to the bootstrap
Perhaps using lib.dir in bootstrap.conf or create a new lib.bootstrap.dir property.
Using different library folders would allow configuring multiple instances of Nifi using the same resource. I managed changing the properties and environment variables above to point to a common lib directory but this harcoded prevented run-nifi.bat to run successfully. dump-nifi.bat and status-nifi.bat ran without issue.