Hello
Can someone elaborate on how to create a NAR artifact that contains versions of a native library compiled for different platforms? The FAQ answer to the question "
How do I use the NAR plugin to create a JNI type library for multiple platforms (Windows, MacOSX and Linux)?" says something I can't even parse in plain English: "
Additionally, you need to specify which will be used to load the native libraries." -- what does this mean? What does "which" refer to in the aforementioned sentence?
Concretely, can someone outline the steps necessary to combine multiple native libraries (one for each platform) in a single artifact? In other words, mvn package on Linux, MacOS, and Windows each will create the same jar (let's say my.nar) with Java bindings to the native library, and three different binary files, e.g. libmy.so, libmy.dylib, and libmy.dll. Then how to create an artifact package that contains all of these: my.nar, libmy.so, libmy.dylib, and libmy.dll? From what the FAQ answer says, I can't see how this is to be done.
Thanks.