简体   繁体   中英

Adding A 3rd Party JNI Library to Nexus

I am currently using a 3rd party java library, "foo", that has jni dependencies. The jni dependency also utilizes softlinks. The directory structure looks something like

foo/
   /foo.jar
   /libfoo.so -> libfoo.so.1.0
   /libfoo.so.1.0

How do I package the .jar & .so, with softlink, and upload to my local nexus "3rd party" repository?

There is a similar question but unfortunately that questioner is asking how to deploy their own project which they can control & manipulate. In my case I'm working with a .jar and .so that I can't change.

Thank you in advance for your consideration and response.

I think you should separate the java library and the native library when deploying on Nexus.

In order to deploy the native library, you can find an idea at the following URL: maven-bundling-and-unpacking-native-libraries

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM