Hi, Am Freitag, den 25.04.2008, 17:58 +0200 schrieb Alexander Klimetschek: > Hi, > > what is the best practice when you want to bundle a lot of external > maven jar files that aren't OSGi bundles yet? > > Partial knowledge snippets I could collect so far: > > 1) some projects might already annotate their jars with the maven- > bundle-plugin - but how do I quickly find out if they have when I have > a lot of external jars to look at?
Look at the META-INF/MANIFEST.MF file inside the JAR. If there are Bundle-* manifest headers, the JAR file is in fact an OSGi bundle. > > 2) there are several bundle repositories (oscar, felix project, etc.), > but they appear to be small, not-searchable and even undiscoverable > via google searches... And some are even outdated. I would not bother for them in your concrete case. On the other hand, the Apache Felix project is currently looking for ways of building an OSGi bundle repository. But we did not come far yet. > > 3) I have read about "wrapper bundles" on this mailing list - but how > do they look like? In fact, as has already been said, it is basically a simple POM file, which has the original bundle as a dependency and runs the maven bundle plugin to create a bundle of it. For the Apache Felix provided wrappers refer to http://svn.apache.org/repos/asf/felix/trunk/commons/ > > 4) it's possible with some maven config (I think assembly plugin) to > "merge" multiple jars in a single one - is it possible to use the > bundle plugin with that final jar then? Yes, see the wrappers provided in the Felix project (or refer to Toby' example). Regards Felix > > Regards, > Alex > > -- > Alexander Klimetschek > [EMAIL PROTECTED] > > >> Day JCR Cup 08 | Win a MacBook Pro: http://dev.day.com/ << > > > >
