简体   繁体   English

将第三方JNI库添加到Nexus

[英]Adding A 3rd Party JNI Library to Nexus

I am currently using a 3rd party java library, "foo", that has jni dependencies. 我目前正在使用第三方java库“foo”,它具有jni依赖项。 The jni dependency also utilizes softlinks. jni依赖还使用软链接。 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? 如何使用softlink打包.jar和.so,并上传到我当地的nexus“第三方”存储库?

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. 在我的情况下,我正在使用.jar和.so,我无法改变。

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. 我认为在Nexus上部署时应该将Java库和本机库分开。

In order to deploy the native library, you can find an idea at the following URL: maven-bundling-and-unpacking-native-libraries 为了部署本机库,您可以在以下URL中找到一个想法: maven-bundling-and-unpacking-native-libraries

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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