From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx]
On Behalf Of Stieber, Uwe
Sent: Donnerstag, 14. August 2014 08:07
To: Tycho user list
Subject: Re: [tycho-user] Tycho 0.21 Surefire Plugin Dependency declaration
Can someone help us out with some advice? After switching to Tycho 0.21.0 we are not able to get our tests back running. All we keep getting is
[ERROR] Cannot resolve project dependencies:
[ERROR] You requested to install 'org.eclipse.sdk.feature.group.feature.group 0.0.0' but it could not be found
[INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with exception(s)
[INFO] o.h.m.e.h.MavenExecutionResultHandler -  org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: No solution
found because the problem is unsatisfiable.: [Unable to satisfy dependency from tycho-extra-1407995404074 0.0.0.1407995404074 to org.eclipse.sdk.feature.group.feature.group 0.0.0.; Unable to satisfy dependency from tycho-extra-1407995404074 0.0.0.1407995404074
to >org.eclipse.tcf.te.tcf.feature.feature.group.feature.group 0.0.0.; Unable to satisfy dependency from tycho-1407995404217 0.0.0.1407995404217 to org.eclipse.sdk.feature.group.feature.group 0.0.0.; Unable to satisfy dependency from tycho-1407995404217 0.0.0.1407995404217
to >org.eclipse.tcf.te.tcf.feature.feature.group.feature.group 0.0.0.; No solution found because the problem is unsatisfiable.]
https://hudson.eclipse.org/tcf/job/tcf-master-tests/2/console for all the details.
The target platform has been configured as advised in
http://git.eclipse.org/c/tcf/org.eclipse.tcf.git/tree/pom.xml for details.
What is wrong with it?
Thanks, Best regards, Uwe
Can anyone can come up with a working example on how to add features and plugins from the current reactor to the “test runtime”?
The 0.21.0 release notes states that “<dependencies>” from the tycho-surefire-plugin configuration needs to be transformed in target-platform-configuration/dependency-resolution/extraRequirements instead. However, declaring the dependencies via the “target-platform-configuration” plugin as described in https://bugs.eclipse.org/bugs/show_bug.cgi?id=436617#c11 does not work either, it always fails with “You requested to install … but it could not be found”. The error happens while resolving the initial target platform before a single project is even built. I can understand that the artifacts cannot be found at this stage, because they must be built first. So how do I get the tycho-surefire-plugin test runtime to be configured to use the static target platform configuration and the plugins and features just built? There seems no way to do this with 0.21.0 while it worked just fine with 0.20.0 and before.
Best regards, Uwe J