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

Bug 368538

Summary: Older versions from target file may be preferred over reactor artifact
Product: z_Archived Reporter: Tobias Oberlies <t-oberlies>
Component: TychoAssignee: Project Inbox <tycho-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P2 CC: borislavarnaudov
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Tobias Oberlies CLA 2012-01-13 07:23:32 EST
I just realized that the automatic filtering which was done for bug 342637 does not apply for content from target definition files. This means, that when using a target file, the target platform may contain another (typically older) version of the content being built in the reactor. This may lead to surprising results, because the p2 planner (used for dependency resolution, test runtime computation, and product installation) does not necessarily choose the newest version.

We should either apply the same approach as in bug 342637, i.e. remove all other versions, or warn/fail if the other versions are used.
Comment 1 Tobias Oberlies CLA 2012-01-13 07:24:10 EST
(In reply to comment #0)
> or warn/fail if the other versions are used.
... as proposed here: bug 347177
Comment 2 Borislav Arnaudov CLA 2012-01-20 02:49:56 EST
This issue is quickly becoming a showstopper for some of our projects. 
We have a big project that builds 20-30 components and then gathers a couple of products through product files. When I start the big build it fails as it tries to take an old version from the target platform for one of the components that is assembled in the products. When I ran the build only on the subproject of the product files I get the right component packaged in the product. This is very strange behavior.
Comment 3 Tobias Oberlies CLA 2013-05-16 08:49:13 EDT
Given that 0.18.0 will probably be released in the Kepler timeframe, this will have to be postponed to the next release.
Comment 4 Tobias Oberlies CLA 2013-10-21 08:38:07 EDT
Sorry for the late response. This problem has been fixed as a side-effect of this commit [1] and is therefore resolved since 0.14.0 (released on 14.2.2012). I've added a unit test [2] to ensure the intended behaviour.

[1] http://git.eclipse.org/c/tycho/org.eclipse.tycho.git/commit/?id=c425a9152ad284aff9391f82e9300af33c02cc16
[2] http://git.eclipse.org/c/tycho/org.eclipse.tycho.git/commit/?id=49e9d11bdcb3137453a5631ce75ce9f14b335474