Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 473
Ramón J Romero y Vigil Avatar asked May 24 '18 15:05

Ramón J Romero y Vigil


Video Answer


1 Answers

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

like image 70
gdegani Avatar answered Sep 24 '22 00:09

gdegani