I'm using a library provided by our HSM manufacturer but I'm having issues to "integrate" it in our Maven Java project.
I successfully add them to our maven artifactory and I added 3 dependencies to the pom.xml, one for the so file, one for the dll file and one for the jar file.
Everything seems to be downloaded correctly to my local Maven repository and I can use the classes within my code but I'm having 2 issues:
- I can't figure out how to package it in my jar file to make it works inside a docker image.
- When I try to run it from Intellij I'm getting an UnsatisfiedLinkError because it's not in my java.library.path but as it's in my pom.xml and as a dependency it should find it right?
Thanks for the help.