I looked at PAX tools on OPS4J, for example: this one , and I thought I found a good way:
- Specify an artifact
- Create a assembled jar (a jar that contains all the dependencies) from this jar and its transitive dependencies
- Wrap it with BND to create an OSGi package
Turns out I was wrong - PAX doesn't seem to do it. (RTFM, right? :))
But I was wondering: is there something there that does what I ask?
I thought maybe I could do this by creating a simple POM and using the maven-bundle-plugin, but it seems like it might be a little cumbersome for what I ask.
NOTE. . I understand that embedding and building a jar is not really an “OSGi way”, so I wouldn’t do it if I hadn’t felt it was useful. For example, Spring.
Thanks in advance.
source
share