Hello OSGi-experts,
I have an OBR including my Felix-launcher (systembundle) and some other
bundles. My Felix-Launcher loads the OBR and deploys the bundles. To take
care that the systembundle is not deployed for a second time I have to
exclude the Felix-launcher in the OBR before I deploy all other bundles
(repoAdmin.discoverResources(filter)). But now, the Resolver complains about
unresolved dependencies to "system.bundle" and some system-packages. The
Resolver does not take into account that it is called within the
systembundle.
My first idea was: 1. Get the BundleRevision and thus the capabilities of
the systembundle. 2. Add the capabilites to the Resolver by calling
resolver.addGlobalCapability(capability).
Collection<Capability> capabilities =
bundlecontext.getBundle(0).adapt(BundleRevision.class).getCapabilities(*);
for(Capability capability : capabilities) {
resolver.addGlobalCapability(capability);
}
The Problem: There exist 2 classes "Capability".
-org.apache.felix.bundlerepository.Capability
-org.osgi.resource.Capability;
Any suggestions?
Thanks in advance
Roland
--
View this message in context:
http://apache-felix.18485.x6.nabble.com/Unresolved-dependency-system-bundle-tp5004643.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]