I have a set of OSGi bundles being built using Maven and I was wondering if there is a Maven plugin available that allows me to do the following:
- Specify the set of bundles to include in a distribution and/or specify a single bundle and have the dependencies resolved.
- Build a complete distribution of the framework. What I mean is a single zip file containing all the bundles needed, plus the correct directory structure for felix so that the user can simply unzip the file and type "java -jar bin/felix.jar".
I did some Googling and I didn't find anything very promising aside from appassembler. Have any of you ever come up with a good solution?
Update Here's an illustration of what I'm trying to accomplish.
example-parent\
bundle-one
bundle-two
bundle-three
assembly-one
assembly-two
Where assembly-one
would include bundle-one
and bundle-two
and assembly-two
would include bundle-two
and bundle-three
or any combination thereof. Then when you build your project, you would get two zip files, one for assembly-one
and one for assembly-two
that would contain the appropriate bundles in a self-contained felix install. For example:
assembly-one.zip\
bin\felix.jar
bundle\bundle-one, bundle-two, plus bare min felix bundles
conf\any configuration files I need
Hopefully that provides a little more information about what I'm trying to accomplish. I guess this is kind of similar to how Eclipse does a feature.xml, but of course not using Eclipse.