Adding a JNI library to the local Maven Repository

后端 未结 3 1782
盖世英雄少女心
盖世英雄少女心 2021-02-04 02:52

I wish to add a JNI library, including its shared object (.so) file to my project using Maven. Unfortunately it is not yet on a public repository so I guess I have to install it

3条回答
  •  悲哀的现实
    2021-02-04 03:47

    As an alternative to unpacking your libraries at runtime, you could store them as jars in Maven but unpack them at build time: http://www.buildanddeploy.com/node/17.

    The maven-nativedependencies-plugin plugin will do this for you automatically, as long as you follow their naming convention.

提交回复
热议问题