I have created a jni project with java code (native methods) and C code.
The maven nar plugin produces both a jar file with only java code and a nar file with the proper native code as it should.
However when I want to reference this project/module from another project I get an error that the dependency is not found. Upon inspection of my local repository I notice that I only have nar files for both the java code & native code. How can I reference this dependency and will it automatically include the native code?
You should be referencing the dependency using <type>nar</type>
.