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

Bug 369692

Summary: Can't build P2 with two features that has different versions of same bundle
Product: z_Archived Reporter: Cristiano Gaviao <cvgaviao>
Component: TychoAssignee: Project Inbox <tycho-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: igor
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
project that reproduce the problem. none

Description Cristiano Gaviao CLA 2012-01-25 11:16:28 EST
Build Identifier: M20110909-1335

I've created a P2 where I concentrate bundles that we use in our projects.

I've included two features that depends on same bundle but each with different versions. but Tycho doesn't built it.



Reproducible: Always

Steps to Reproduce:
1. create a p2 project
2. create feature 1 including a bundle A with version 1.x
3. create feature 2 including a bundle A with version 2.x
4. run the build
Comment 1 Cristiano Gaviao CLA 2012-01-25 11:19:31 EST
Created attachment 210062 [details]
project that reproduce the problem.
Comment 2 Igor Fedorenko CLA 2012-01-25 11:38:23 EST
Only one version of pom-first dependencies can be used by any given reactor project. This is a fundamental limitation of pomDependencies=consider. In your case, test.p2 project needs to access both vaadin 6.7.4 and 7.0.0.alpha1, which is not possible to express using maven dependencies.
Comment 3 Cristiano Gaviao CLA 2012-01-25 14:27:27 EST
Igor, could you think in any alternative so that I could have this p2 built ?

I wondering to know how Orbit deal with such dependencies...

thanks
Comment 4 Igor Fedorenko CLA 2012-01-25 21:01:25 EST
No, nothing immediately comes to mind.