Okay, then I think the easiest way to get Equinox DS working would be
to create a very small bundle, that contains the
org.osgi.service.component package only.
If I have to create such small API bundles for some other packages,
too, I would like to use the maven-bundle-plugin in a similar way to
So, using the org.eclipse.osgi.services or org.osgi.compendium bundle
and create a new bundle containing only one package of that one.
Do you think, I could do this with the maven-bundle-plugin?
2015-08-31 14:30 GMT+02:00 Achim Nierbeck <email@example.com>:
> Hi Markus,
> if those packages you need aren't included in the ds bundle,
> I think it's ok to do a "micro" re-packaging and either by adding a
> fragment-bundle with the appropriate classes and meta-inf information to the
> equinox-ds bundle or create a standalone bundle that only contains those
> packages in need.
> With that you make sure you only provide the packages needed at the time.
> If you do this, the feature:list will work again, even without restarting
> the container.
> regards, Achim
> 2015-08-31 14:20 GMT+02:00 Markus Rathgeb <firstname.lastname@example.org>:
>> I have to use the Equinox OSGi framework and Equinox DS in a Karaf
>> The Equinox OSGi framework is no problem at all.
>> I added "karaf.framework=equinox" to "etc/custom.properties" and started
>> To install DS of Equinox I installed first the Equnix util bundle and
>> after that Equinox DS bundle:
>> The Equinox DS bundle could not be started because its
>> "Import-Package" line for
>> It does not export org.osgi.service.component themselves as it is done
>> by org.apache.felix.scr.
>> Perhaps the difference between the two bundles are exact this one:
>> So, but I have to use Equinox DS.
>> It is working, if I install the "org.eclipse.osgi.services" bundle,
>> but this could be incorrect similar to install a org.osgi.compendium
>> I have already read the reply of JBO in this topic years ago:
>> "You don't have (and must not ;)) put compendium jar in the deploy
>> But which packages can be added to "org.osgi.framework.system.packages" at
>> The Equinox OSGi bundle does not contain the org.osgi.service.component
>> Same problem as DS also exists for Equinox Event bundle.
>> Ah, and if I installed "org.eclipse.osgi.services" feature:list will
>> not work until the next restart of Karaf.
>> But as I should not install the bundle, this just as a note.
>> Could you give me some tips?
>> Best regards,
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
> Project Lead
> blog <http://notizblog.nierbeck.de/>
> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
> Software Architect / Project Manager / Scrum Master