Though wrap should work, especially when you append OSGi metadata header instructions with wrap, we don't recommend to use wrap especially in production. We suggest you use maven-bundle-plugin or bnd tool to generate a bundle to make this jar OSGi friendly.
Many thanks. I can't use maven plugin as it is a binary that I have to install on Karaf and this binary doesn't come with OSGi bundles. Of course, I could build from sources but I think that bnd approach would be easier. I'll have a look at it but I thought that using bnd is equivalent to use wrap. At least this is what the documentation states.
But okay, I noticed that this is not recommended in production.