OSGi bundles generally do not depend on OSGi, it just adds key-value pairs to META-INF/MANIFEST.MF. These are generated automatically by build plugins and generally require no maintenance unless there are optional dependencies that the bnd tool cannot discern.
When loading under Apache Karaf, the following feature elements take care of everything:
<bundle>mvn:com.bionicspirit/shade_2.11/1.7.0-SNAPSHOT</bundle>
<bundle>wrap:mvn:net.spy/spymemcached/2.11.1$Import-Package=org.springframework.beans.factory;com.codahale.metrics;resolution:=optional,shade.memcached.internals,*</bundle>
<bundle>wrap:mvn:org.monifu/monifu-core_2.11/0.7.0</bundle>
OSGi bundles generally do not depend on OSGi, it just adds key-value pairs to META-INF/MANIFEST.MF. These are generated automatically by build plugins and generally require no maintenance unless there are optional dependencies that the bnd tool cannot discern.
When loading under Apache Karaf, the following feature elements take care of everything: