Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 346817 - Tycho can't build a Fragment when Host has a version with qualifier
Summary: Tycho can't build a Fragment when Host has a version with qualifier
Status: RESOLVED INVALID
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Tycho (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-22 16:30 EDT by Cristiano Gaviao CLA
Modified: 2021-04-28 16:55 EDT (History)
1 user (show)

See Also:


Attachments
tycho demo itp02 with an added fragment project. (11.13 KB, application/zip)
2011-05-22 16:32 EDT, Cristiano Gaviao CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.