Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 371064

Summary: Bundle project cannot reference an exported package from another Bundle project
Product: [RT] Virgo Reporter: Brian Williamson <bwilliamson>
Component: toolingAssignee: Project Inbox <virgo-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: critical    
Priority: P3 CC: eclipse, glyn.normington, mlippert
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows Server 2003   
Whiteboard:

Description Brian Williamson CLA 2012-02-09 06:50:50 EST
Build Identifier: Version: Indigo Service Release 1 Build id: 20110916-0149 Virgo Tooling Version 1.0.0.201110312003-SNAPSHOT

Regardless of what type of project is created (EclipseRT Bundle, Spring Bundle, Spring with OSGi nature installed) any exported packages from bundle A cannot be imported into bundle B.  The manifest editor seems to find the exported packages ok and allows their selection however once added to the manifest, tooling reports that the package cannot be resolved.

For additional info, please see Eclipse forum entry:
http://www.eclipse.org/forums/index.php/mv/msg/285975/793713/

Reproducible: Always

Steps to Reproduce:
1. Create two bundle projects
2. Create a package in each project
3. Create a class in each project
4. Export package(s) in manifest.mf
5. Import package in only one project
6. Save manifest.mf and error should appear.

I've basically be trying to create a virgin project for use with Virgo and ran into this problem.  From the assistance I have received in the Virgo forums it has been identified as a bug.

For additional info, please see Eclipse forum entry:
http://www.eclipse.org/forums/index.php/mv/msg/285975/793713/
Comment 1 Miles Parker CLA 2012-02-09 16:00:39 EST
Marking as critical, since you really can't use the tooling in a meaningful way without this.
Comment 2 Miles Parker CLA 2012-02-13 17:45:08 EST
OK, this ended up being invalid. In order to establish a dependency between Virgo bundles you need to be using a par project. You can also do this with plans, but it is unlcear to me right now how that would work, as it seems that you would have to deploy the dependency to the server in order to actually use it.
Comment 3 Glyn Normington CLA 2012-02-13 18:37:04 EST
Please note that an alternative to a PAR is to use a plan, but note that the tooling support for plans is currently rather rudimentary.