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

Bug 346817

Summary: Tycho can't build a Fragment when Host has a version with qualifier
Product: z_Archived Reporter: Cristiano Gaviao <cvgaviao>
Component: TychoAssignee: Project Inbox <tycho-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: t-oberlies
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
tycho demo itp02 with an added fragment project. none

Description Cristiano Gaviao CLA 2011-05-22 16:30:22 EDT
Build Identifier: 20110301-1815

I have created project named tycho.demo.itp02.fragment and have used the tycho demo project tycho.demo.itp02.pomfirst-thirdparty as HOST to reproduce the problem (attached).

The version of tycho.demo.itp02.pomfirst-thirdparty is 1.0.0-SNAPSHOT,
so I've used 1.0.0.qualifier as the host minimum version of tycho.demo.itp02.fragment. 

when I run the build I got this error:
[INFO] [Software being installed: tycho.demo.itp02.fragment
1.0.0.qualifier, Missing requirement: tycho.demo.itp02.fragment
1.0.0.qualifier requires 'bundle tycho.demo.itp02.pomfirst-thirdparty
1.0.0.qualifier' but it could not be found]
[ERROR] Internal error: java.lang.RuntimeException:
org.eclipse.equinox.p2.core.ProvisionException: No solution found
because the problem is unsatisfiable. -> [Help 1]
org.apache.maven.InternalErrorException: Internal error:
java.lang.RuntimeException:
org.eclipse.equinox.p2.core.ProvisionException: No solution found
because the problem is unsatisfiable.
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168) 

If I use 1.0.0 as host version tycho works properly.

Reproducible: Always

Steps to Reproduce:
1. unzip the attached file
2. build itp02-pomfirst-parent with mvn install
3. build itp02-parent with mvn install
Comment 1 Cristiano Gaviao CLA 2011-05-22 16:32:25 EDT
Created attachment 196302 [details]
tycho demo itp02 with an added fragment project.
Comment 2 Tobias Oberlies CLA 2011-06-10 11:59:29 EDT
This works as designed: Only the artifact versions are qualified - Tycho does not replace 'qualifier' in any type of dependencies.

If you would like to have this feature, please re-open this issue as "enhancement" (field severity), and explain your use case.