Hi,

Am 01.07.2012 um 22:06 schrieb David Bosschaert:

> Hi all,
> 
> I've playing with the current subsystems implementation and thanks to
> John Ross fixing some bugs I've been able to get a subsystem with the
> CXF-DOSGi functionality working :)
> 
> However, I've been thinking what the best way is to create a subsystem
> in maven... My current impl has a few issues and maybe others have
> some ideas how to improve:
> 1. My SUBSYSTEM.MF [1] needs to have the OSGi variant of the
> ${project.version} so it needs to translate 1.4.0-SNAPSHOT into
> 1.4.0.SNAPSHOT. Anyone know a way to do this?

IIRC the maven commons sub-part of the bundle plugin has a utility method to 
achieve this conversion.

> 2. The Subsystem-Content lists all the dependencies of the project.
> However, because some of the bundles for this subsystem weren't
> developed with OSGi in mind, the start ordering is significant. I
> don't know of an easy way to generate this so currently it's hardcoded
> and hence duplicated. Also note that fragments obviously don't have a
> start-order.

Just wondering: How could start order be forced in OSGi ?

IIRC there is no such thing as start ordering because such an order can never 
be guaranteed -- start levels only help to a certain degree.

Regards
Felix


> 3. In [2] I'm using the maven-assembly plugin to get all the
> dependencies zipped up. However I need to have the .esa extension
> whereas this plugin insists on .zip. I'm currently achieving that by
> copying the .zip file to an .esa and then attaching the .esa to the
> project but that's kinda wasteful as it puts both the .zip and the
> .esa in the maven repo (and they're a couple of megs each).
> 
> 2 above might be a bit hard to achieve in the short term, but 1 and 3
> might be possible given the right amount of maven-fu?
> I guess it would really be nice if there was a maven plugin that could
> do all this ;)
> 
> Cheers,
> 
> David
> 
> [1] 
> http://svn.apache.org/repos/asf/cxf/dosgi/trunk/distribution/subsystem/src/main/resources/OSGI-INF/SUBSYSTEM.MF
> [2] 
> http://svn.apache.org/repos/asf/cxf/dosgi/trunk/distribution/subsystem/pom.xml

Reply via email to