|
|
OSGi bundle does not populate in bundle dependencies of secondary bundle
Bundle dependencies not updated: Cannot reference bundleA within bundleB (both bundles are different eclipse projects)
QUESTION:
My question; how am I suppose to reference bundleA within bundleB assuming both bundles are different eclipse projects? When I add bundleA to bundleB its gives me an error quot;Import-Bundle: BundleB [1.0.0, 1.0.0] could not be resolvedquot;. Do I need to export anything to Virgo2.1 filesturcture? I would expect the plugin to manage this for me by updating its classpath container quot;com..server.ide.jdt.core.MANIFEST_CLA SSPATH_CONTAINERquot;. I've read thru showth...ighlight=virgo but this is a separate issue.
DETAILS:
I have two projects; ProducerP and ConsumerC as OSGi bundle projects within STS. Both projects point to Virgo2.1 runtime. I can import bundle ProducerP into ConsumerC using the STS plugin (its visible in the list) however the bundle dependencies are not updated with ProducerP; thus not allowing me to link to its interfaces. I can link other bundles and libraries provided by Virgo2.1 and it does show up as a bundle dependency so that part appears to work fine. SPECS:
Virgo2.1 runtime
STS Version: 2.5.1.RELEASE
Both projects are under quot;OSGi bundle naturequot;
Both projects are visible within quot;Import Bundlequot; option
Both projects can be installed and started within Servers tabs of STS
THANKS |
|