0

I have *.so library and want to pack project into jar. Can someone help with problem how to force maven to pack native libraries so when i run jar they can be used?

i don`t want to add .so as new artifact. It is build also with maven before i build main java project so i just want to pack them into jar so i can use it.

Thanks.

Adrian Deja
  • 737
  • 1
  • 9
  • 17
  • 1
    possible duplicate of [Managing DLL dependencies with Maven](http://stackoverflow.com/questions/1001774/managing-dll-dependencies-with-maven) – Dmitry Ginzburg Oct 10 '14 at 10:01
  • Copy resources with maven: http://maven.apache.org/plugins/maven-resources-plugin/examples/copy-resources.html – Stefan Oct 10 '14 at 10:07

1 Answers1

0

I've copied resources before but couldn't read .so which was within the jar. So finally I've found Load library from jar and achieved my goal.

Community
  • 1
  • 1
Adrian Deja
  • 737
  • 1
  • 9
  • 17