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

Bug 342637

Summary: External newer dependency version "shadows" reactor projects
Product: z_Archived Reporter: Igor Fedorenko <igor>
Component: TychoAssignee: Project Inbox <tycho-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: pwebster, t-oberlies, vladt
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Igor Fedorenko CLA 2011-04-12 16:32:04 EDT
Consider the following project

a-parent/
  bundle-a/
  feature-a/
   (has deployableFeature=true and includes bundle-a)

This project has two development streams, version 2.0.0-SNAPSHOT is the current "bleeding" edge with release date many months in the future and 1.0.0-SNAPSHOT which is about to enter final testing before the release.

Using Tycho 0.10.0, it is possible to build both 2.0.0-SNAPSHOT and 1.0.0-SNAPSHOT streams on the same development machine and in both cases feature-a/target/site includes expected version of bundle-a.

Using Tycho 0.11.0, build of 1.0.0-SNAPSHOT includes 2.0.0-SNAPSHOT. 

And it looks like p2 dependency resolver generally stopped preferring rector projects over external dependencies, so bundle dependencies are resolved to newer versions of projects that are part of the same reactor build.
Comment 1 Tobias Oberlies CLA 2011-04-13 03:56:12 EDT
Do you have a sample project that can be used to step through the Tycho resolver?
Comment 3 Igor Fedorenko CLA 2011-04-14 22:12:04 EDT
Still need to apply the fix to master.
Comment 4 Igor Fedorenko CLA 2011-04-15 00:07:04 EDT
manually merged to master