felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Meschberger <fmesc...@adobe.com>
Subject Re: Maven Bundle Plugin - Marking packages from optional dependencies as required
Date Tue, 09 Oct 2012 08:54:23 GMT

Am 06.10.2012 um 21:09 schrieb Chetan Mehrotra:

> In Apache Jackrabbit Oak project the various modules are configured as
> OSGi bundles. Same jars are also meant to be used in non OSGi
> environment also. As OSGi related logic would not be used in such env
> we need to mark such dependencies (say OSGi Core and Compedium jars)
> as optional. However due to this the maven-bundle-plugin marks such
> packages (org.osgi.framework) as optional which is not desirable.

I do not completely understand your problem: When using bundles in a non-OSGi setup, the OSGi
manifest headers are just ignored. Particularly the Import-Package header is just not used.
So there is no problem with this header.

Also, in an OSGi context, these dependencies generally are not optional, unless carefully
reviewed. So marking them optional for the sake of non-OSGi setups is probably error prone.


> Is there a way to disable this behaviour i.e. marking the packages
> from optional dependencies as optional globally and instead allow one
> to explicitly define the packages which are meant to be optional?

To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org

View raw message