I got a 3rd party jar which I am using for Blowfish decryption in a bundle that I need to deploy on apache karaf.
So now I also need karaf to know this jar but every solution I find is about creating a whole bundle for that jar which is pretty much for a simple library imo.
What I already did is installing that jar in my local maven repository and adding the dependency but this also doesn't work (at least on karaf).
Is there any other way to get 3rd party jars on apache karaf to work?
In addiction to @fiw you may want to osgify your thirdparty jar using Bndtools. In order to achive it:
Type:
java -jar bnd-2.4.0.jar wrap -o osgify-dependency.jar dependency.jar
where dependency.jar is your third party and osgify-dependency.jar will be the output.
Deploy to maven repo overriding the previous maven coordinates, or deploy your thirdparty with different coordinates.
mvn deploy:deploy-file -Dfile osgify-dependency.jar ...