You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Manuel Fiorelli <ma...@gmail.com> on 2014/02/10 20:11:59 UTC
Differences between jar and bundle packaging in Maven POM
Hello everybody,
I know that you can build an OSGi bundle through the maven-bundle-plugin,
either by setting the "packaging" to "bundle", or by explicitly attaching
the plugin to the build lifecycle of an "ordinary" jar.
I would like to know what are the consequences of the two approaches, and
how they affect the Maven dependency mechanism.
In particular, I am really interested in the choice of the approach best
suited to each of the following two scenarios.
Scenario 1: old-fashioned library
In some projects of mine I want that a component can be used both as an
OSGi bundle and as an ordinary JAR.
Scenario 2: OSGi only
I've some projects that are meant to be used only in an OSGi container.
--
Manuel Fiorelli