Discussion:
Tycho 0.21 Surefire Plugin Dependency declaration
(too old to reply)
Stieber, Uwe
2014-08-13 13:28:27 UTC
Permalink
Hi guys,

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 :)
Stieber, Uwe
2014-08-14 06:07:29 UTC
Permalink
Hi,

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
[ERROR]
[INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with exception(s)
[INFO] o.h.m.e.h.MavenExecutionResultHandler - [1] 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.]
...

See https://hudson.eclipse.org/tcf/job/tcf-master-tests/2/console for all the details.

The target platform has been configured as advised in https://bugs.eclipse.org/bugs/show_bug.cgi?id=436617#c11.

...
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<configuration>
<dependency-resolution>
<extraRequirements>
<requirement>
<type>eclipse-feature</type>
<id>org.eclipse.sdk.feature.group</id>
<versionRange>0.0.0</versionRange>
</requirement>
<requirement>
<type>eclipse-feature</type>
<id>>org.eclipse.tcf.te.tcf.feature.feature.group</id>
<versionRange>0.0.0</versionRange>
</requirement>
<requirement>
<type>eclipse-plugin</type>
<id>org.eclipse.tcf.te.tests</id>
<versionRange>0.0.0</versionRange>
</requirement>
</extraRequirements>
</dependency-resolution>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
...

See http://git.eclipse.org/c/tcf/org.eclipse.tcf.git/tree/pom.xml for details.

What is wrong with it?

Thanks, Best regards, Uwe :)


From: tycho-user-***@eclipse.org [mailto:tycho-user-***@eclipse.org] On Behalf Of Stieber, Uwe
Sent: Mittwoch, 13. August 2014 15:28
To: tycho-***@eclipse.org
Subject: [tycho-user] Tycho 0.21 Surefire Plugin Dependency declaration

Hi guys,

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 :)
Stieber, Uwe
2014-08-14 06:16:46 UTC
Permalink
Hi again,

And if I remove the ".feature.group" from the <id> tags, it seems to get over the "o.e.sdk" feature requirement, but it keep failing for the "o.e.tcf.te.tcf.feature" feature requirement.

...
[ERROR] Cannot resolve project dependencies:
[ERROR] You requested to install '>org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0' but it could not be found
[ERROR]
[INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with exception(s)
[INFO] o.h.m.e.h.MavenExecutionResultHandler - [1] org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: No solution found because the problem is unsatisfiable.: [Unable to satisfy dependency from tycho-extra-1407996811065 0.0.0.1407996811065 to >org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0.; Unable to satisfy dependency from tycho-1407996811371 0.0.0.1407996811371 to >org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0.; No solution found because the problem is unsatisfiable.]
...

See https://hudson.eclipse.org/tcf/job/tcf-master-tests/3/console for details.

Best regards, Uwe :)


From: tycho-user-***@eclipse.org [mailto:tycho-user-***@eclipse.org] 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

Hi,

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
[ERROR]
[INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with exception(s)
[INFO] o.h.m.e.h.MavenExecutionResultHandler - [1] 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.]
...

See https://hudson.eclipse.org/tcf/job/tcf-master-tests/2/console for all the details.

The target platform has been configured as advised in https://bugs.eclipse.org/bugs/show_bug.cgi?id=436617#c11.

...
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<configuration>
<dependency-resolution>
<extraRequirements>
<requirement>
<type>eclipse-feature</type>
<id>org.eclipse.sdk.feature.group</id>
<versionRange>0.0.0</versionRange>
</requirement>
<requirement>
<type>eclipse-feature</type>
<id>>org.eclipse.tcf.te.tcf.feature.feature.group</id>
<versionRange>0.0.0</versionRange>
</requirement>
<requirement>
<type>eclipse-plugin</type>
<id>org.eclipse.tcf.te.tests</id>
<versionRange>0.0.0</versionRange>
</requirement>
</extraRequirements>
</dependency-resolution>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
...

See http://git.eclipse.org/c/tcf/org.eclipse.tcf.git/tree/pom.xml for details.

What is wrong with it?

Thanks, Best regards, Uwe :)


From: tycho-user-***@eclipse.org<mailto:tycho-user-***@eclipse.org> [mailto:tycho-user-***@eclipse.org] On Behalf Of Stieber, Uwe
Sent: Mittwoch, 13. August 2014 15:28
To: tycho-***@eclipse.org<mailto:tycho-***@eclipse.org>
Subject: [tycho-user] Tycho 0.21 Surefire Plugin Dependency declaration

Hi guys,

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 :)
Marco Lehmann-Mörz
2014-08-14 06:22:47 UTC
Permalink
Hi Uwe,

you did not remove ".feature.group" from
org.eclipse.tcf.te.tcf.feature.feature.group
as well.

CU
Marco



2014-08-14 8:16 GMT+02:00 Stieber, Uwe <***@windriver.com>:

> Hi again,
>
>
>
> And if I remove the “.feature.group” from the <id> tags, it seems to get
> over the “o.e.sdk” feature requirement, but it keep failing for the
> “o.e.tcf.te.tcf.feature” feature requirement.
>
>
>
> 

>
> [ERROR] Cannot resolve project dependencies:
>
> [ERROR] You requested to install
> '>org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0' but it could not be
> found
>
> [ERROR]
>
> [INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with
> exception(s)
>
> [INFO] o.h.m.e.h.MavenExecutionResultHandler - [1]
> org.apache.maven.InternalErrorException: Internal error:
> java.lang.RuntimeException: No solution found because the problem is
> unsatisfiable.: [Unable to satisfy dependency from
> tycho-extra-1407996811065 0.0.0.1407996811065 to
> >org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0.; Unable to satisfy
> dependency from tycho-1407996811371 0.0.0.1407996811371 to
> >org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0.; No solution found
> because the problem is unsatisfiable.]
>
> 

>
>
>
> See https://hudson.eclipse.org/tcf/job/tcf-master-tests/3/console for
> details.
>
>
>
> Best regards, Uwe J
>
>
>
>
>
> *From:* tycho-user-***@eclipse.org [mailto:
> tycho-user-***@eclipse.org] *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
>
>
>
> Hi,
>
>
>
> 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
>
> [ERROR]
>
> [INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with
> exception(s)
>
> [INFO] o.h.m.e.h.MavenExecutionResultHandler - [1]
> 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.]
>
> 

>
>
>
> See https://hudson.eclipse.org/tcf/job/tcf-master-tests/2/console for all
> the details.
>
>
>
> The target platform has been configured as advised in
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=436617#c11.
>
>
>
> 

>
> <build>
>
> <pluginManagement>
>
> <plugins>
>
> <plugin>
>
> <groupId>org.eclipse.tycho</groupId>
>
>
> <artifactId>target-platform-configuration</artifactId>
>
> <configuration>
>
> <dependency-resolution>
>
> <extraRequirements>
>
> <requirement>
>
> <type>eclipse-feature</type>
>
>
> <id>org.eclipse.sdk.feature.group</id>
>
>
> <versionRange>0.0.0</versionRange>
>
> </requirement>
>
> <requirement>
>
> <type>eclipse-feature</type>
>
>
> <id>>org.eclipse.tcf.te.tcf.feature.feature.group</id>
>
>
> <versionRange>0.0.0</versionRange>
>
> </requirement>
>
> <requirement>
>
> <type>eclipse-plugin</type>
>
>
> <id>org.eclipse.tcf.te.tests</id>
>
>
> <versionRange>0.0.0</versionRange>
>
> </requirement>
>
> </extraRequirements>
>
> </dependency-resolution>
>
> </configuration>
>
> </plugin>
>
> </plugins>
>
> </pluginManagement>
>
> </build>
>
> 

>
>
>
> See http://git.eclipse.org/c/tcf/org.eclipse.tcf.git/tree/pom.xml for
> details.
>
>
>
> What is wrong with it?
>
>
>
> Thanks, Best regards, Uwe J
>
>
>
>
>
> *From:* tycho-user-***@eclipse.org [
> mailto:tycho-user-***@eclipse.org <tycho-user-***@eclipse.org>] *On
> Behalf Of *Stieber, Uwe
> *Sent:* Mittwoch, 13. August 2014 15:28
> *To:* tycho-***@eclipse.org
> *Subject:* [tycho-user] Tycho 0.21 Surefire Plugin Dependency declaration
>
>
>
> Hi guys,
>
>
>
> 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
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
> tycho-user mailing list
> tycho-***@eclipse.org
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/tycho-user
>



--
Tschö Marco
Stieber, Uwe
2014-08-14 06:48:24 UTC
Permalink
Hi Marco,

The “.feature.group” is added again to the error message. The platform definition does look as following



<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<configuration>
<dependency-resolution>
<extraRequirements>
<requirement>
<type>eclipse-feature</type>
<id>org.eclipse.sdk</id>
<versionRange>0.0.0</versionRange>
</requirement>
<requirement>
<type>eclipse-feature</type>
<id>>org.eclipse.tcf.te.tcf.feature</id>
<versionRange>0.0.0</versionRange>
</requirement>
</extraRequirements>
</dependency-resolution>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>



See http://git.eclipse.org/c/tcf/org.eclipse.tcf.git/tree/pom.xml.

Thanks, Best regards, Uwe ☺



From: tycho-user-***@eclipse.org [mailto:tycho-user-***@eclipse.org] On Behalf Of Marco Lehmann-Mörz
Sent: Donnerstag, 14. August 2014 08:23
To: Tycho user list
Subject: Re: [tycho-user] Tycho 0.21 Surefire Plugin Dependency declaration

Hi Uwe,

you did not remove ".feature.group" from org.eclipse.tcf.te.tcf.feature.feature.group as well.

CU
Marco


2014-08-14 8:16 GMT+02:00 Stieber, Uwe <***@windriver.com<mailto:***@windriver.com>>:
Hi again,

And if I remove the “.feature.group” from the <id> tags, it seems to get over the “o.e.sdk” feature requirement, but it keep failing for the “o.e.tcf.te.tcf.feature” feature requirement.



[ERROR] Cannot resolve project dependencies:
[ERROR] You requested to install '>org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0' but it could not be found
[ERROR]
[INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with exception(s)
[INFO] o.h.m.e.h.MavenExecutionResultHandler - [1] org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: No solution found because the problem is unsatisfiable.: [Unable to satisfy dependency from tycho-extra-1407996811065 0.0.0.1407996811065 to >org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0.; Unable to satisfy dependency from tycho-1407996811371 0.0.0.1407996811371 to >org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0.; No solution found because the problem is unsatisfiable.]



See https://hudson.eclipse.org/tcf/job/tcf-master-tests/3/console for details.

Best regards, Uwe ☺


From: tycho-user-***@eclipse.org<mailto:tycho-user-***@eclipse.org> [mailto:tycho-user-***@eclipse.org<mailto:tycho-user-***@eclipse.org>] 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

Hi,

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
[ERROR]
[INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with exception(s)
[INFO] o.h.m.e.h.MavenExecutionResultHandler - [1] 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.]



See https://hudson.eclipse.org/tcf/job/tcf-master-tests/2/console for all the details.

The target platform has been configured as advised in https://bugs.eclipse.org/bugs/show_bug.cgi?id=436617#c11.



<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<configuration>
<dependency-resolution>
<extraRequirements>
<requirement>
<type>eclipse-feature</type>
<id>org.eclipse.sdk.feature.group</id>
<versionRange>0.0.0</versionRange>
</requirement>
<requirement>
<type>eclipse-feature</type>
<id>>org.eclipse.tcf.te.tcf.feature.feature.group</id>
<versionRange>0.0.0</versionRange>
</requirement>
<requirement>
<type>eclipse-plugin</type>
<id>org.eclipse.tcf.te.tests</id>
<versionRange>0.0.0</versionRange>
</requirement>
</extraRequirements>
</dependency-resolution>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>



See http://git.eclipse.org/c/tcf/org.eclipse.tcf.git/tree/pom.xml for details.

What is wrong with it?

Thanks, Best regards, Uwe ☺


From: tycho-user-***@eclipse.org<mailto:tycho-user-***@eclipse.org> [mailto:tycho-user-***@eclipse.org] On Behalf Of Stieber, Uwe
Sent: Mittwoch, 13. August 2014 15:28
To: tycho-***@eclipse.org<mailto:tycho-***@eclipse.org>
Subject: [tycho-user] Tycho 0.21 Surefire Plugin Dependency declaration

Hi guys,

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 ☺









_______________________________________________
tycho-user mailing list
tycho-***@eclipse.org<mailto:tycho-***@eclipse.org>
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user



--
Tschö Marco
Marco Lehmann-Mörz
2014-08-14 07:04:52 UTC
Permalink
Hi Uwe.

My mistake.
But I think I can see the problem now.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=436617#c11 says, you should
do that in the test-plugin rather than the parent?!

HTH,
Marco



2014-08-14 8:48 GMT+02:00 Stieber, Uwe <***@windriver.com>:

> Hi Marco,
>
>
>
> The “.feature.group” is added again to the error message. The platform
> definition does look as following
>
>
>
> 

>
> <build>
>
> <pluginManagement>
>
> <plugins>
>
> <plugin>
>
> <groupId>org.eclipse.tycho</groupId>
>
>
> <artifactId>target-platform-configuration</artifactId>
>
> <configuration>
>
> <dependency-resolution>
>
> <extraRequirements>
>
> <requirement>
>
> <type>eclipse-feature</type>
>
> <id>org.eclipse.sdk</id>
>
>
> <versionRange>0.0.0</versionRange>
>
> </requirement>
>
> <requirement>
>
> <type>eclipse-feature</type>
>
>
> <id>>org.eclipse.tcf.te.tcf.feature</id>
>
>
> <versionRange>0.0.0</versionRange>
>
> </requirement>
>
> </extraRequirements>
>
> </dependency-resolution>
>
> </configuration>
>
> </plugin>
>
> </plugins>
>
> </pluginManagement>
>
> </build>
>
> 

>
>
>
> See http://git.eclipse.org/c/tcf/org.eclipse.tcf.git/tree/pom.xml.
>
>
>
> Thanks, Best regards, Uwe J
>
>
>
>
>
>
>
> *From:* tycho-user-***@eclipse.org [mailto:
> tycho-user-***@eclipse.org] *On Behalf Of *Marco Lehmann-Mörz
> *Sent:* Donnerstag, 14. August 2014 08:23
>
> *To:* Tycho user list
> *Subject:* Re: [tycho-user] Tycho 0.21 Surefire Plugin Dependency
> declaration
>
>
>
> Hi Uwe,
>
>
>
> you did not remove ".feature.group" from org.eclipse.tcf.te.tcf.feature.feature.group
> as well.
>
>
>
> CU
>
> Marco
>
>
>
>
>
> 2014-08-14 8:16 GMT+02:00 Stieber, Uwe <***@windriver.com>:
>
> Hi again,
>
>
>
> And if I remove the “.feature.group” from the <id> tags, it seems to get
> over the “o.e.sdk” feature requirement, but it keep failing for the
> “o.e.tcf.te.tcf.feature” feature requirement.
>
>
>
> 

>
> [ERROR] Cannot resolve project dependencies:
>
> [ERROR] You requested to install
> '>org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0' but it could not be
> found
>
> [ERROR]
>
> [INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with
> exception(s)
>
> [INFO] o.h.m.e.h.MavenExecutionResultHandler - [1]
> org.apache.maven.InternalErrorException: Internal error:
> java.lang.RuntimeException: No solution found because the problem is
> unsatisfiable.: [Unable to satisfy dependency from
> tycho-extra-1407996811065 0.0.0.1407996811065 to
> >org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0.; Unable to satisfy
> dependency from tycho-1407996811371 0.0.0.1407996811371 to
> >org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0.; No solution found
> because the problem is unsatisfiable.]
>
> 

>
>
>
> See https://hudson.eclipse.org/tcf/job/tcf-master-tests/3/console for
> details.
>
>
>
> Best regards, Uwe J
>
>
>
>
>
> *From:* tycho-user-***@eclipse.org [mailto:
> tycho-user-***@eclipse.org] *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
>
>
>
> Hi,
>
>
>
> 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
>
> [ERROR]
>
> [INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with
> exception(s)
>
> [INFO] o.h.m.e.h.MavenExecutionResultHandler - [1]
> 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.]
>
> 

>
>
>
> See https://hudson.eclipse.org/tcf/job/tcf-master-tests/2/console for all
> the details.
>
>
>
> The target platform has been configured as advised in
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=436617#c11.
>
>
>
> 

>
> <build>
>
> <pluginManagement>
>
> <plugins>
>
> <plugin>
>
> <groupId>org.eclipse.tycho</groupId>
>
>
> <artifactId>target-platform-configuration</artifactId>
>
> <configuration>
>
> <dependency-resolution>
>
> <extraRequirements>
>
> <requirement>
>
> <type>eclipse-feature</type>
>
>
> <id>org.eclipse.sdk.feature.group</id>
>
>
> <versionRange>0.0.0</versionRange>
>
> </requirement>
>
> <requirement>
>
> <type>eclipse-feature</type>
>
>
> <id>>org.eclipse.tcf.te.tcf.feature.feature.group</id>
>
>
> <versionRange>0.0.0</versionRange>
>
> </requirement>
>
> <requirement>
>
> <type>eclipse-plugin</type>
>
>
> <id>org.eclipse.tcf.te.tests</id>
>
>
> <versionRange>0.0.0</versionRange>
>
> </requirement>
>
> </extraRequirements>
>
> </dependency-resolution>
>
> </configuration>
>
> </plugin>
>
> </plugins>
>
> </pluginManagement>
>
> </build>
>
> 

>
>
>
> See http://git.eclipse.org/c/tcf/org.eclipse.tcf.git/tree/pom.xml for
> details.
>
>
>
> What is wrong with it?
>
>
>
> Thanks, Best regards, Uwe J
>
>
>
>
>
> *From:* tycho-user-***@eclipse.org [
> mailto:tycho-user-***@eclipse.org <tycho-user-***@eclipse.org>] *On
> Behalf Of *Stieber, Uwe
> *Sent:* Mittwoch, 13. August 2014 15:28
> *To:* tycho-***@eclipse.org
> *Subject:* [tycho-user] Tycho 0.21 Surefire Plugin Dependency declaration
>
>
>
> Hi guys,
>
>
>
> 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
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
> tycho-user mailing list
> tycho-***@eclipse.org
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/tycho-user
>
>
>
>
>
> --
>
> Tschö Marco
>
> _______________________________________________
> tycho-user mailing list
> tycho-***@eclipse.org
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/tycho-user
>



--
Tschö Marco
Stieber, Uwe
2014-08-14 07:33:19 UTC
Permalink
Hi Marco,

I have moved the target-platform-configuration to the tests plugin (see [1]) and removed it from the parent. This is getting me through initial dependency resolution until it reaches the module o.e.tcf.te.tests (see [2]):



[INFO] Computing target platform for MavenProject: org.eclipse.tcf:org.eclipse.tcf.te.tests:1.3.0.qualifier @ /jobs/genie.tools.cdt.tcf/tcf-master-tests/workspace/target_explorer/plugins/org.eclipse.tcf.te.tests/pom.xml
[INFO] Resolving dependencies of MavenProject: org.eclipse.tcf:org.eclipse.tcf.te.tests:1.3.0.qualifier @ /jobs/genie.tools.cdt.tcf/tcf-master-tests/workspace/target_explorer/plugins/org.eclipse.tcf.te.tests/pom.xml
[INFO] Cannot complete the request. Generating details.
[INFO] Cannot complete the request. Generating details.
[INFO] {osgi.ws=gtk, osgi.os=linux, osgi.arch=x86, org.eclipse.update.install.features=true}
[ERROR] Cannot resolve project dependencies:
[ERROR] You requested to install '>org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0' but it could not be found
[ERROR]
[INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with exception(s)
[INFO] o.h.m.e.h.MavenExecutionResultHandler - [1] org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: No solution found because the problem is unsatisfiable.: [Unable to satisfy dependency from tycho-extra-1408000945216 0.0.0.1408000945216 to >org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0.; Unable to satisfy dependency from tycho-1408000945247 0.0.0.1408000945247 to >org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0.; No solution found because the problem is unsatisfiable.]
[DEBUG] Closing connection to remote
[ERROR] Internal error: java.lang.RuntimeException: No solution found because the problem is unsatisfiable.: [Unable to satisfy dependency from tycho-extra-1408000945216 0.0.0.1408000945216 to >org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0.; Unable to satisfy dependency from tycho-1408000945247 0.0.0.1408000945247 to >org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0.; No solution found because the problem is unsatisfiable.] -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: No solution found because the problem is unsatisfiable.: [Unable to satisfy dependency from tycho-extra-1408000945216 0.0.0.1408000945216 to >org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0.; Unable to satisfy dependency from tycho-1408000945247 0.0.0.1408000945247 to >org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0.; No solution found because the problem is unsatisfiable.]



At this early stage in the build, that feature has not been built, so it is quite clear that the dependency resolution cannot find it.

And if reading [3], I’m not sure that configuring the target platform is doing the trick of setting up the desired test runtime environment for executing the unit tests. It clearly says 


Note that the test runtime does typically not contain the entire target platform.

And

If there are implicitly required bundles 
, they need to be added manually through an explicit dependencies configuration.

What about features? And we had the explicit dependencies configuration until now and it worked like a charm with Tycho 0.20.0.

Thanks, Best regards, Uwe ☺

[1] http://git.eclipse.org/c/tcf/org.eclipse.tcf.git/tree/target_explorer/plugins/org.eclipse.tcf.te.tests/pom.xml
[2] https://hudson.eclipse.org/tcf/job/tcf-master-tests/5/console
[3] http://eclipse.org/tycho/sitedocs/tycho-surefire/tycho-surefire-plugin/plugin-info.html



From: tycho-user-***@eclipse.org [mailto:tycho-user-***@eclipse.org] On Behalf Of Marco Lehmann-Mörz
Sent: Donnerstag, 14. August 2014 09:05
To: Tycho user list
Subject: Re: [tycho-user] Tycho 0.21 Surefire Plugin Dependency declaration

Hi Uwe.

My mistake.
But I think I can see the problem now.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=436617#c11 says, you should do that in the test-plugin rather than the parent?!

HTH,
Marco


2014-08-14 8:48 GMT+02:00 Stieber, Uwe <***@windriver.com<mailto:***@windriver.com>>:
Hi Marco,

The “.feature.group” is added again to the error message. The platform definition does look as following



<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<configuration>
<dependency-resolution>
<extraRequirements>
<requirement>
<type>eclipse-feature</type>
<id>org.eclipse.sdk</id>
<versionRange>0.0.0</versionRange>
</requirement>
<requirement>
<type>eclipse-feature</type>
<id>>org.eclipse.tcf.te.tcf.feature</id>
<versionRange>0.0.0</versionRange>
</requirement>
</extraRequirements>
</dependency-resolution>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>



See http://git.eclipse.org/c/tcf/org.eclipse.tcf.git/tree/pom.xml.

Thanks, Best regards, Uwe ☺



From: tycho-user-***@eclipse.org<mailto:tycho-user-***@eclipse.org> [mailto:tycho-user-***@eclipse.org<mailto:tycho-user-***@eclipse.org>] On Behalf Of Marco Lehmann-Mörz
Sent: Donnerstag, 14. August 2014 08:23

To: Tycho user list
Subject: Re: [tycho-user] Tycho 0.21 Surefire Plugin Dependency declaration

Hi Uwe,

you did not remove ".feature.group" from org.eclipse.tcf.te.tcf.feature.feature.group as well.

CU
Marco


2014-08-14 8:16 GMT+02:00 Stieber, Uwe <***@windriver.com<mailto:***@windriver.com>>:
Hi again,

And if I remove the “.feature.group” from the <id> tags, it seems to get over the “o.e.sdk” feature requirement, but it keep failing for the “o.e.tcf.te.tcf.feature” feature requirement.



[ERROR] Cannot resolve project dependencies:
[ERROR] You requested to install '>org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0' but it could not be found
[ERROR]
[INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with exception(s)
[INFO] o.h.m.e.h.MavenExecutionResultHandler - [1] org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: No solution found because the problem is unsatisfiable.: [Unable to satisfy dependency from tycho-extra-1407996811065 0.0.0.1407996811065 to >org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0.; Unable to satisfy dependency from tycho-1407996811371 0.0.0.1407996811371 to >org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0.; No solution found because the problem is unsatisfiable.]



See https://hudson.eclipse.org/tcf/job/tcf-master-tests/3/console for details.

Best regards, Uwe ☺


From: tycho-user-***@eclipse.org<mailto:tycho-user-***@eclipse.org> [mailto:tycho-user-***@eclipse.org<mailto:tycho-user-***@eclipse.org>] 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

Hi,

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
[ERROR]
[INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with exception(s)
[INFO] o.h.m.e.h.MavenExecutionResultHandler - [1] 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.]



See https://hudson.eclipse.org/tcf/job/tcf-master-tests/2/console for all the details.

The target platform has been configured as advised in https://bugs.eclipse.org/bugs/show_bug.cgi?id=436617#c11.



<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<configuration>
<dependency-resolution>
<extraRequirements>
<requirement>
<type>eclipse-feature</type>
<id>org.eclipse.sdk.feature.group</id>
<versionRange>0.0.0</versionRange>
</requirement>
<requirement>
<type>eclipse-feature</type>
<id>>org.eclipse.tcf.te.tcf.feature.feature.group</id>
<versionRange>0.0.0</versionRange>
</requirement>
<requirement>
<type>eclipse-plugin</type>
<id>org.eclipse.tcf.te.tests</id>
<versionRange>0.0.0</versionRange>
</requirement>
</extraRequirements>
</dependency-resolution>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>



See http://git.eclipse.org/c/tcf/org.eclipse.tcf.git/tree/pom.xml for details.

What is wrong with it?

Thanks, Best regards, Uwe ☺


From: tycho-user-***@eclipse.org<mailto:tycho-user-***@eclipse.org> [mailto:tycho-user-***@eclipse.org] On Behalf Of Stieber, Uwe
Sent: Mittwoch, 13. August 2014 15:28
To: tycho-***@eclipse.org<mailto:tycho-***@eclipse.org>
Subject: [tycho-user] Tycho 0.21 Surefire Plugin Dependency declaration

Hi guys,

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 ☺









_______________________________________________
tycho-user mailing list
tycho-***@eclipse.org<mailto:tycho-***@eclipse.org>
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user



--
Tschö Marco

_______________________________________________
tycho-user mailing list
tycho-***@eclipse.org<mailto:tycho-***@eclipse.org>
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user



--
Tschö Marco
Justin Georgeson
2014-08-14 14:38:52 UTC
Permalink
Maybe this is related?

https://bugs.eclipse.org/bugs/show_bug.cgi?id=441113

We aren’t setting test runtime dependencies on features, we’re using a p2.inf in host bundles to introduce a runtime dependency on platform fragments, and it’s working in the validation phase but when tycho-surefire runs it can’t find the requirements specified in the p2.inf, even though they’re in the same reactor. Our aggregator POMs are setup like the example project and we have reactor profiles to separately build the plugins and features needed for the product with ‘mvn install’ and build and run the tests with ‘mvn -Dreactor=tests verify’.

From: tycho-user-***@eclipse.org [mailto:tycho-user-***@eclipse.org] On Behalf Of Stieber, Uwe
Sent: Thursday, August 14, 2014 2:33 AM
To: Tycho user list
Subject: Re: [tycho-user] Tycho 0.21 Surefire Plugin Dependency declaration

Hi Marco,

I have moved the target-platform-configuration to the tests plugin (see [1]) and removed it from the parent. This is getting me through initial dependency resolution until it reaches the module o.e.tcf.te.tests (see [2]):



[INFO] Computing target platform for MavenProject: org.eclipse.tcf:org.eclipse.tcf.te.tests:1.3.0.qualifier @ /jobs/genie.tools.cdt.tcf/tcf-master-tests/workspace/target_explorer/plugins/org.eclipse.tcf.te.tests/pom.xml
[INFO] Resolving dependencies of MavenProject: org.eclipse.tcf:org.eclipse.tcf.te.tests:1.3.0.qualifier @ /jobs/genie.tools.cdt.tcf/tcf-master-tests/workspace/target_explorer/plugins/org.eclipse.tcf.te.tests/pom.xml
[INFO] Cannot complete the request. Generating details.
[INFO] Cannot complete the request. Generating details.
[INFO] {osgi.ws=gtk, osgi.os=linux, osgi.arch=x86, org.eclipse.update.install.features=true}
[ERROR] Cannot resolve project dependencies:
[ERROR] You requested to install '>org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0' but it could not be found
[ERROR]
[INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with exception(s)
[INFO] o.h.m.e.h.MavenExecutionResultHandler - [1] org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: No solution found because the problem is unsatisfiable.: [Unable to satisfy dependency from tycho-extra-1408000945216 0.0.0.1408000945216 to >org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0.; Unable to satisfy dependency from tycho-1408000945247 0.0.0.1408000945247 to >org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0.; No solution found because the problem is unsatisfiable.]
[DEBUG] Closing connection to remote
[ERROR] Internal error: java.lang.RuntimeException: No solution found because the problem is unsatisfiable.: [Unable to satisfy dependency from tycho-extra-1408000945216 0.0.0.1408000945216 to >org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0.; Unable to satisfy dependency from tycho-1408000945247 0.0.0.1408000945247 to >org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0.; No solution found because the problem is unsatisfiable.] -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: No solution found because the problem is unsatisfiable.: [Unable to satisfy dependency from tycho-extra-1408000945216 0.0.0.1408000945216 to >org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0.; Unable to satisfy dependency from tycho-1408000945247 0.0.0.1408000945247 to >org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0.; No solution found because the problem is unsatisfiable.]



At this early stage in the build, that feature has not been built, so it is quite clear that the dependency resolution cannot find it.

And if reading [3], I’m not sure that configuring the target platform is doing the trick of setting up the desired test runtime environment for executing the unit tests. It clearly says 


Note that the test runtime does typically not contain the entire target platform.

And

If there are implicitly required bundles 
, they need to be added manually through an explicit dependencies configuration.

What about features? And we had the explicit dependencies configuration until now and it worked like a charm with Tycho 0.20.0.

Thanks, Best regards, Uwe ☺

[1] http://git.eclipse.org/c/tcf/org.eclipse.tcf.git/tree/target_explorer/plugins/org.eclipse.tcf.te.tests/pom.xml
[2] https://hudson.eclipse.org/tcf/job/tcf-master-tests/5/console
[3] http://eclipse.org/tycho/sitedocs/tycho-surefire/tycho-surefire-plugin/plugin-info.html



From: tycho-user-***@eclipse.org<mailto:tycho-user-***@eclipse.org> [mailto:tycho-user-***@eclipse.org] On Behalf Of Marco Lehmann-Mörz
Sent: Donnerstag, 14. August 2014 09:05
To: Tycho user list
Subject: Re: [tycho-user] Tycho 0.21 Surefire Plugin Dependency declaration

Hi Uwe.

My mistake.
But I think I can see the problem now.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=436617#c11 says, you should do that in the test-plugin rather than the parent?!

HTH,
Marco


2014-08-14 8:48 GMT+02:00 Stieber, Uwe <***@windriver.com<mailto:***@windriver.com>>:
Hi Marco,

The “.feature.group” is added again to the error message. The platform definition does look as following



<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<configuration>
<dependency-resolution>
<extraRequirements>
<requirement>
<type>eclipse-feature</type>
<id>org.eclipse.sdk</id>
<versionRange>0.0.0</versionRange>
</requirement>
<requirement>
<type>eclipse-feature</type>
<id>>org.eclipse.tcf.te.tcf.feature</id>
<versionRange>0.0.0</versionRange>
</requirement>
</extraRequirements>
</dependency-resolution>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>



See http://git.eclipse.org/c/tcf/org.eclipse.tcf.git/tree/pom.xml.

Thanks, Best regards, Uwe ☺



From: tycho-user-***@eclipse.org<mailto:tycho-user-***@eclipse.org> [mailto:tycho-user-***@eclipse.org<mailto:tycho-user-***@eclipse.org>] On Behalf Of Marco Lehmann-Mörz
Sent: Donnerstag, 14. August 2014 08:23

To: Tycho user list
Subject: Re: [tycho-user] Tycho 0.21 Surefire Plugin Dependency declaration

Hi Uwe,

you did not remove ".feature.group" from org.eclipse.tcf.te.tcf.feature.feature.group as well.

CU
Marco


2014-08-14 8:16 GMT+02:00 Stieber, Uwe <***@windriver.com<mailto:***@windriver.com>>:
Hi again,

And if I remove the “.feature.group” from the <id> tags, it seems to get over the “o.e.sdk” feature requirement, but it keep failing for the “o.e.tcf.te.tcf.feature” feature requirement.



[ERROR] Cannot resolve project dependencies:
[ERROR] You requested to install '>org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0' but it could not be found
[ERROR]
[INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with exception(s)
[INFO] o.h.m.e.h.MavenExecutionResultHandler - [1] org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: No solution found because the problem is unsatisfiable.: [Unable to satisfy dependency from tycho-extra-1407996811065 0.0.0.1407996811065 to >org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0.; Unable to satisfy dependency from tycho-1407996811371 0.0.0.1407996811371 to >org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0.; No solution found because the problem is unsatisfiable.]



See https://hudson.eclipse.org/tcf/job/tcf-master-tests/3/console for details.

Best regards, Uwe ☺


From: tycho-user-***@eclipse.org<mailto:tycho-user-***@eclipse.org> [mailto:tycho-user-***@eclipse.org<mailto:tycho-user-***@eclipse.org>] 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

Hi,

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
[ERROR]
[INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with exception(s)
[INFO] o.h.m.e.h.MavenExecutionResultHandler - [1] 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.]



See https://hudson.eclipse.org/tcf/job/tcf-master-tests/2/console for all the details.

The target platform has been configured as advised in https://bugs.eclipse.org/bugs/show_bug.cgi?id=436617#c11.



<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<configuration>
<dependency-resolution>
<extraRequirements>
<requirement>
<type>eclipse-feature</type>
<id>org.eclipse.sdk.feature.group</id>
<versionRange>0.0.0</versionRange>
</requirement>
<requirement>
<type>eclipse-feature</type>
<id>>org.eclipse.tcf.te.tcf.feature.feature.group</id>
<versionRange>0.0.0</versionRange>
</requirement>
<requirement>
<type>eclipse-plugin</type>
<id>org.eclipse.tcf.te.tests</id>
<versionRange>0.0.0</versionRange>
</requirement>
</extraRequirements>
</dependency-resolution>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>



See http://git.eclipse.org/c/tcf/org.eclipse.tcf.git/tree/pom.xml for details.

What is wrong with it?

Thanks, Best regards, Uwe ☺


From: tycho-user-***@eclipse.org<mailto:tycho-user-***@eclipse.org> [mailto:tycho-user-***@eclipse.org] On Behalf Of Stieber, Uwe
Sent: Mittwoch, 13. August 2014 15:28
To: tycho-***@eclipse.org<mailto:tycho-***@eclipse.org>
Subject: [tycho-user] Tycho 0.21 Surefire Plugin Dependency declaration

Hi guys,

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 ☺









_______________________________________________
tycho-user mailing list
tycho-***@eclipse.org<mailto:tycho-***@eclipse.org>
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user



--
Tschö Marco

_______________________________________________
tycho-user mailing list
tycho-***@eclipse.org<mailto:tycho-***@eclipse.org>
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user



--
Tschö Marco

----------------------------------------------------------------------
This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message.
Doug Schaefer
2014-08-14 16:19:18 UTC
Permalink
Check how CDT is doing it. We've moved to 0.21 and had to do a few things to get tests working again.

Sent from my BlackBerry 10 smartphone on the Rogers network.
From: Justin Georgeson
Sent: Thursday, August 14, 2014 10:39 AM
To: Tycho user list
Reply To: Tycho user list
Subject: Re: [tycho-user] Tycho 0.21 Surefire Plugin Dependency declaration


Maybe this is related?

https://bugs.eclipse.org/bugs/show_bug.cgi?id=441113

We aren’t setting test runtime dependencies on features, we’re using a p2.inf in host bundles to introduce a runtime dependency on platform fragments, and it’s working in the validation phase but when tycho-surefire runs it can’t find the requirements specified in the p2.inf, even though they’re in the same reactor. Our aggregator POMs are setup like the example project and we have reactor profiles to separately build the plugins and features needed for the product with ‘mvn install’ and build and run the tests with ‘mvn -Dreactor=tests verify’.

From: tycho-user-***@eclipse.org [mailto:tycho-user-***@eclipse.org] On Behalf Of Stieber, Uwe
Sent: Thursday, August 14, 2014 2:33 AM
To: Tycho user list
Subject: Re: [tycho-user] Tycho 0.21 Surefire Plugin Dependency declaration

Hi Marco,

I have moved the target-platform-configuration to the tests plugin (see [1]) and removed it from the parent. This is getting me through initial dependency resolution until it reaches the module o.e.tcf.te.tests (see [2]):

…
[INFO] Computing target platform for MavenProject: org.eclipse.tcf:org.eclipse.tcf.te.tests:1.3.0.qualifier @ /jobs/genie.tools.cdt.tcf/tcf-master-tests/workspace/target_explorer/plugins/org.eclipse.tcf.te.tests/pom.xml
[INFO] Resolving dependencies of MavenProject: org.eclipse.tcf:org.eclipse.tcf.te.tests:1.3.0.qualifier @ /jobs/genie.tools.cdt.tcf/tcf-master-tests/workspace/target_explorer/plugins/org.eclipse.tcf.te.tests/pom.xml
[INFO] Cannot complete the request. Generating details.
[INFO] Cannot complete the request. Generating details.
[INFO] {osgi.ws=gtk, osgi.os=linux, osgi.arch=x86, org.eclipse.update.install.features=true}
[ERROR] Cannot resolve project dependencies:
[ERROR] You requested to install '>org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0' but it could not be found
[ERROR]
[INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with exception(s)
[INFO] o.h.m.e.h.MavenExecutionResultHandler - [1] org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: No solution found because the problem is unsatisfiable.: [Unable to satisfy dependency from tycho-extra-1408000945216 0.0.0.1408000945216 to >org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0.; Unable to satisfy dependency from tycho-1408000945247 0.0.0.1408000945247 to >org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0.; No solution found because the problem is unsatisfiable.]
[DEBUG] Closing connection to remote
[ERROR] Internal error: java.lang.RuntimeException: No solution found because the problem is unsatisfiable.: [Unable to satisfy dependency from tycho-extra-1408000945216 0.0.0.1408000945216 to >org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0.; Unable to satisfy dependency from tycho-1408000945247 0.0.0.1408000945247 to >org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0.; No solution found because the problem is unsatisfiable.] -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: No solution found because the problem is unsatisfiable.: [Unable to satisfy dependency from tycho-extra-1408000945216 0.0.0.1408000945216 to >org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0.; Unable to satisfy dependency from tycho-1408000945247 0.0.0.1408000945247 to >org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0.; No solution found because the problem is unsatisfiable.]
…

At this early stage in the build, that feature has not been built, so it is quite clear that the dependency resolution cannot find it.

And if reading [3], I’m not sure that configuring the target platform is doing the trick of setting up the desired test runtime environment for executing the unit tests. It clearly says …

Note that the test runtime does typically not contain the entire target platform.

And

If there are implicitly required bundles …, they need to be added manually through an explicit dependencies configuration.

What about features? And we had the explicit dependencies configuration until now and it worked like a charm with Tycho 0.20.0.

Thanks, Best regards, Uwe :)

[1] http://git.eclipse.org/c/tcf/org.eclipse.tcf.git/tree/target_explorer/plugins/org.eclipse.tcf.te.tests/pom.xml
[2] https://hudson.eclipse.org/tcf/job/tcf-master-tests/5/console
[3] http://eclipse.org/tycho/sitedocs/tycho-surefire/tycho-surefire-plugin/plugin-info.html



From: tycho-user-***@eclipse.org<mailto:tycho-user-***@eclipse.org> [mailto:tycho-user-***@eclipse.org] On Behalf Of Marco Lehmann-Mörz
Sent: Donnerstag, 14. August 2014 09:05
To: Tycho user list
Subject: Re: [tycho-user] Tycho 0.21 Surefire Plugin Dependency declaration

Hi Uwe.

My mistake.
But I think I can see the problem now.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=436617#c11 says, you should do that in the test-plugin rather than the parent?!

HTH,
Marco


2014-08-14 8:48 GMT+02:00 Stieber, Uwe <***@windriver.com<mailto:***@windriver.com>>:
Hi Marco,

The “.feature.group” is added again to the error message. The platform definition does look as following

…
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<configuration>
<dependency-resolution>
<extraRequirements>
<requirement>
<type>eclipse-feature</type>
<id>org.eclipse.sdk</id>
<versionRange>0.0.0</versionRange>
</requirement>
<requirement>
<type>eclipse-feature</type>
<id>>org.eclipse.tcf.te.tcf.feature</id>
<versionRange>0.0.0</versionRange>
</requirement>
</extraRequirements>
</dependency-resolution>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
…

See http://git.eclipse.org/c/tcf/org.eclipse.tcf.git/tree/pom.xml.

Thanks, Best regards, Uwe :)



From: tycho-user-***@eclipse.org<mailto:tycho-user-***@eclipse.org> [mailto:tycho-user-***@eclipse.org<mailto:tycho-user-***@eclipse.org>] On Behalf Of Marco Lehmann-Mörz
Sent: Donnerstag, 14. August 2014 08:23

To: Tycho user list
Subject: Re: [tycho-user] Tycho 0.21 Surefire Plugin Dependency declaration

Hi Uwe,

you did not remove ".feature.group" from org.eclipse.tcf.te.tcf.feature.feature.group as well.

CU
Marco


2014-08-14 8:16 GMT+02:00 Stieber, Uwe <***@windriver.com<mailto:***@windriver.com>>:
Hi again,

And if I remove the “.feature.group” from the <id> tags, it seems to get over the “o.e.sdk” feature requirement, but it keep failing for the “o.e.tcf.te.tcf.feature” feature requirement.

…
[ERROR] Cannot resolve project dependencies:
[ERROR] You requested to install '>org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0' but it could not be found
[ERROR]
[INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with exception(s)
[INFO] o.h.m.e.h.MavenExecutionResultHandler - [1] org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: No solution found because the problem is unsatisfiable.: [Unable to satisfy dependency from tycho-extra-1407996811065 0.0.0.1407996811065 to >org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0.; Unable to satisfy dependency from tycho-1407996811371 0.0.0.1407996811371 to >org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0.; No solution found because the problem is unsatisfiable.]
…

See https://hudson.eclipse.org/tcf/job/tcf-master-tests/3/console for details.

Best regards, Uwe :)


From: tycho-user-***@eclipse.org<mailto:tycho-user-***@eclipse.org> [mailto:tycho-user-***@eclipse.org<mailto:tycho-user-***@eclipse.org>] 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

Hi,

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
[ERROR]
[INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with exception(s)
[INFO] o.h.m.e.h.MavenExecutionResultHandler - [1] 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.]
…

See https://hudson.eclipse.org/tcf/job/tcf-master-tests/2/console for all the details.

The target platform has been configured as advised in https://bugs.eclipse.org/bugs/show_bug.cgi?id=436617#c11.

…
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<configuration>
<dependency-resolution>
<extraRequirements>
<requirement>
<type>eclipse-feature</type>
<id>org.eclipse.sdk.feature.group</id>
<versionRange>0.0.0</versionRange>
</requirement>
<requirement>
<type>eclipse-feature</type>
<id>>org.eclipse.tcf.te.tcf.feature.feature.group</id>
<versionRange>0.0.0</versionRange>
</requirement>
<requirement>
<type>eclipse-plugin</type>
<id>org.eclipse.tcf.te.tests</id>
<versionRange>0.0.0</versionRange>
</requirement>
</extraRequirements>
</dependency-resolution>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
…

See http://git.eclipse.org/c/tcf/org.eclipse.tcf.git/tree/pom.xml for details.

What is wrong with it?

Thanks, Best regards, Uwe :)


From: tycho-user-***@eclipse.org<mailto:tycho-user-***@eclipse.org> [mailto:tycho-user-***@eclipse.org] On Behalf Of Stieber, Uwe
Sent: Mittwoch, 13. August 2014 15:28
To: tycho-***@eclipse.org<mailto:tycho-***@eclipse.org>
Subject: [tycho-user] Tycho 0.21 Surefire Plugin Dependency declaration

Hi guys,

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 :)









_______________________________________________
tycho-user mailing list
tycho-***@eclipse.org<mailto:tycho-***@eclipse.org>
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user



--
Tschö Marco

_______________________________________________
tycho-user mailing list
tycho-***@eclipse.org<mailto:tycho-***@eclipse.org>
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user



--
Tschö Marco
________________________________
This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message.
Marco Lehmann-Mörz
2014-08-14 22:21:49 UTC
Permalink
Hi Uwe.

I cloned your repo locally and it doesn't build with "mvn clean package -P
tests".
I made two changes (please see the diff) to make it build at least for me:

================= CUT HERE =================
diff --git a/admin/pom-config.xml b/admin/pom-config.xml
index 0f943c6..7a44258 100644
--- a/admin/pom-config.xml
+++ b/admin/pom-config.xml
@@ -265,7 +265,7 @@
<executions>
<execution>
<id>p2-metadata</id>
-
<phase>verify</phase>
+
<phase>package</phase>
<goals>

<goal>p2-metadata</goal>
</goals>
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tests/pom.xml
b/target_explorer/plugins/org.eclipse.tcf.te.tests/pom.xml
index d332182..7f6a231 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tests/pom.xml
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tests/pom.xml
@@ -38,11 +38,6 @@
<id>org.eclipse.sdk</id>
<versionRange>0.0.0</versionRange>
</requirement>
- <requirement>
- <type>eclipse-feature</type>
-
<id>>org.eclipse.tcf.te.tcf.feature</id>
- <versionRange>0.0.0</versionRange>
- </requirement>
</extraRequirements>
</dependency-resolution>
</configuration>
================= CUT HERE =================

HTH,
Marco




2014-08-14 18:19 GMT+02:00 Doug Schaefer <***@qnx.com>:

> Check how CDT is doing it. We've moved to 0.21 and had to do a few
> things to get tests working again.
>
> Sent from my BlackBerry 10 smartphone on the Rogers network.
> *From: *Justin Georgeson
> *Sent: *Thursday, August 14, 2014 10:39 AM
> *To: *Tycho user list
> *Reply To: *Tycho user list
> *Subject: *Re: [tycho-user] Tycho 0.21 Surefire Plugin Dependency
> declaration
>
> Maybe this is related?
>
>
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=441113
>
>
>
> We aren’t setting test runtime dependencies on features, we’re using a
> p2.inf in host bundles to introduce a runtime dependency on platform
> fragments, and it’s working in the validation phase but when tycho-surefire
> runs it can’t find the requirements specified in the p2.inf, even though
> they’re in the same reactor. Our aggregator POMs are setup like the example
> project and we have reactor profiles to separately build the plugins and
> features needed for the product with ‘mvn install’ and build and run the
> tests with ‘mvn -Dreactor=tests verify’.
>
>
>
> *From:* tycho-user-***@eclipse.org [mailto:
> tycho-user-***@eclipse.org] *On Behalf Of *Stieber, Uwe
> *Sent:* Thursday, August 14, 2014 2:33 AM
> *To:* Tycho user list
> *Subject:* Re: [tycho-user] Tycho 0.21 Surefire Plugin Dependency
> declaration
>
>
>
> Hi Marco,
>
>
>
> I have moved the target-platform-configuration to the tests plugin (see
> [1]) and removed it from the parent. This is getting me through initial
> dependency resolution until it reaches the module o.e.tcf.te.tests (see
> [2]):
>
>
>
> 

>
> [INFO] Computing target platform for MavenProject:
> org.eclipse.tcf:org.eclipse.tcf.te.tests:1.3.0.qualifier @
> /jobs/genie.tools.cdt.tcf/tcf-master-tests/workspace/target_explorer/plugins/org.eclipse.tcf.te.tests/pom.xml
>
> [INFO] Resolving dependencies of MavenProject:
> org.eclipse.tcf:org.eclipse.tcf.te.tests:1.3.0.qualifier @
> /jobs/genie.tools.cdt.tcf/tcf-master-tests/workspace/target_explorer/plugins/org.eclipse.tcf.te.tests/pom.xml
>
> [INFO] Cannot complete the request. Generating details.
>
> [INFO] Cannot complete the request. Generating details.
>
> [INFO] {osgi.ws=gtk, osgi.os=linux, osgi.arch=x86,
> org.eclipse.update.install.features=true}
>
> [ERROR] Cannot resolve project dependencies:
>
> [ERROR] You requested to install
> '>org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0' but it could not be
> found
>
> [ERROR]
>
> [INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with
> exception(s)
>
> [INFO] o.h.m.e.h.MavenExecutionResultHandler - [1]
> org.apache.maven.InternalErrorException: Internal error:
> java.lang.RuntimeException: No solution found because the problem is
> unsatisfiable.: [Unable to satisfy dependency from
> tycho-extra-1408000945216 0.0.0.1408000945216 to
> >org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0.; Unable to satisfy
> dependency from tycho-1408000945247 0.0.0.1408000945247 to
> >org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0.; No solution found
> because the problem is unsatisfiable.]
>
> [DEBUG] Closing connection to remote
>
> [ERROR] Internal error: java.lang.RuntimeException: No solution found
> because the problem is unsatisfiable.: [Unable to satisfy dependency from
> tycho-extra-1408000945216 0.0.0.1408000945216 to
> >org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0.; Unable to satisfy
> dependency from tycho-1408000945247 0.0.0.1408000945247 to
> >org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0.; No solution found
> because the problem is unsatisfiable.] -> [Help 1]
>
> org.apache.maven.InternalErrorException: Internal error:
> java.lang.RuntimeException: No solution found because the problem is
> unsatisfiable.: [Unable to satisfy dependency from
> tycho-extra-1408000945216 0.0.0.1408000945216 to
> >org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0.; Unable to satisfy
> dependency from tycho-1408000945247 0.0.0.1408000945247 to
> >org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0.; No solution found
> because the problem is unsatisfiable.]
>
> 

>
>
>
> At this early stage in the build, that feature has not been built, so it
> is quite clear that the dependency resolution cannot find it.
>
>
>
> And if reading [3], I’m not sure that configuring the target platform is
> doing the trick of setting up the desired test runtime environment for
> executing the unit tests. It clearly says 

>
>
>
> Note that the test runtime does typically *not* contain the entire target
> platform.
>
>
>
> And
>
>
>
> If there are implicitly required bundles 
, they need to
> be added manually through an explicit dependencies configuration.
>
>
>
> What about features? And we had the explicit dependencies configuration
> until now and it worked like a charm with Tycho 0.20.0.
>
>
>
> Thanks, Best regards, Uwe J
>
>
>
> [1]
> http://git.eclipse.org/c/tcf/org.eclipse.tcf.git/tree/target_explorer/plugins/org.eclipse.tcf.te.tests/pom.xml
>
> [2] https://hudson.eclipse.org/tcf/job/tcf-master-tests/5/console
>
> [3]
> http://eclipse.org/tycho/sitedocs/tycho-surefire/tycho-surefire-plugin/plugin-info.html
>
>
>
>
>
>
>
> *From:* tycho-user-***@eclipse.org [
> mailto:tycho-user-***@eclipse.org <tycho-user-***@eclipse.org>] *On
> Behalf Of *Marco Lehmann-Mörz
> *Sent:* Donnerstag, 14. August 2014 09:05
> *To:* Tycho user list
> *Subject:* Re: [tycho-user] Tycho 0.21 Surefire Plugin Dependency
> declaration
>
>
>
> Hi Uwe.
>
>
>
> My mistake.
>
> But I think I can see the problem now.
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=436617#c11 says, you should
> do that in the test-plugin rather than the parent?!
>
>
>
> HTH,
>
> Marco
>
>
>
>
>
> 2014-08-14 8:48 GMT+02:00 Stieber, Uwe <***@windriver.com>:
>
> Hi Marco,
>
>
>
> The “.feature.group” is added again to the error message. The platform
> definition does look as following
>
>
>
> 

>
> <build>
>
> <pluginManagement>
>
> <plugins>
>
> <plugin>
>
> <groupId>org.eclipse.tycho</groupId>
>
>
> <artifactId>target-platform-configuration</artifactId>
>
> <configuration>
>
> <dependency-resolution>
>
> <extraRequirements>
>
> <requirement>
>
> <type>eclipse-feature</type>
>
> <id>org.eclipse.sdk</id>
>
>
> <versionRange>0.0.0</versionRange>
>
> </requirement>
>
> <requirement>
>
> <type>eclipse-feature</type>
>
>
> <id>>org.eclipse.tcf.te.tcf.feature</id>
>
>
> <versionRange>0.0.0</versionRange>
>
> </requirement>
>
> </extraRequirements>
>
> </dependency-resolution>
>
> </configuration>
>
> </plugin>
>
> </plugins>
>
> </pluginManagement>
>
> </build>
>
> 

>
>
>
> See http://git.eclipse.org/c/tcf/org.eclipse.tcf.git/tree/pom.xml.
>
>
>
> Thanks, Best regards, Uwe J
>
>
>
>
>
>
>
> *From:* tycho-user-***@eclipse.org [mailto:
> tycho-user-***@eclipse.org] *On Behalf Of *Marco Lehmann-Mörz
> *Sent:* Donnerstag, 14. August 2014 08:23
>
>
> *To:* Tycho user list
> *Subject:* Re: [tycho-user] Tycho 0.21 Surefire Plugin Dependency
> declaration
>
>
>
> Hi Uwe,
>
>
>
> you did not remove ".feature.group" from org.eclipse.tcf.te.tcf.feature.feature.group
> as well.
>
>
>
> CU
>
> Marco
>
>
>
>
>
> 2014-08-14 8:16 GMT+02:00 Stieber, Uwe <***@windriver.com>:
>
> Hi again,
>
>
>
> And if I remove the “.feature.group” from the <id> tags, it seems to get
> over the “o.e.sdk” feature requirement, but it keep failing for the
> “o.e.tcf.te.tcf.feature” feature requirement.
>
>
>
> 

>
> [ERROR] Cannot resolve project dependencies:
>
> [ERROR] You requested to install
> '>org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0' but it could not be
> found
>
> [ERROR]
>
> [INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with
> exception(s)
>
> [INFO] o.h.m.e.h.MavenExecutionResultHandler - [1]
> org.apache.maven.InternalErrorException: Internal error:
> java.lang.RuntimeException: No solution found because the problem is
> unsatisfiable.: [Unable to satisfy dependency from
> tycho-extra-1407996811065 0.0.0.1407996811065 to
> >org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0.; Unable to satisfy
> dependency from tycho-1407996811371 0.0.0.1407996811371 to
> >org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0.; No solution found
> because the problem is unsatisfiable.]
>
> 

>
>
>
> See https://hudson.eclipse.org/tcf/job/tcf-master-tests/3/console for
> details.
>
>
>
> Best regards, Uwe J
>
>
>
>
>
> *From:* tycho-user-***@eclipse.org [mailto:
> tycho-user-***@eclipse.org] *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
>
>
>
> Hi,
>
>
>
> 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
>
> [ERROR]
>
> [INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with
> exception(s)
>
> [INFO] o.h.m.e.h.MavenExecutionResultHandler - [1]
> 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.]
>
> 

>
>
>
> See https://hudson.eclipse.org/tcf/job/tcf-master-tests/2/console for all
> the details.
>
>
>
> The target platform has been configured as advised in
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=436617#c11.
>
>
>
> 

>
> <build>
>
> <pluginManagement>
>
> <plugins>
>
> <plugin>
>
> <groupId>org.eclipse.tycho</groupId>
>
>
> <artifactId>target-platform-configuration</artifactId>
>
> <configuration>
>
> <dependency-resolution>
>
> <extraRequirements>
>
> <requirement>
>
> <type>eclipse-feature</type>
>
>
> <id>org.eclipse.sdk.feature.group</id>
>
>
> <versionRange>0.0.0</versionRange>
>
> </requirement>
>
> <requirement>
>
> <type>eclipse-feature</type>
>
>
> <id>>org.eclipse.tcf.te.tcf.feature.feature.group</id>
>
>
> <versionRange>0.0.0</versionRange>
>
> </requirement>
>
> <requirement>
>
> <type>eclipse-plugin</type>
>
>
> <id>org.eclipse.tcf.te.tests</id>
>
>
> <versionRange>0.0.0</versionRange>
>
> </requirement>
>
> </extraRequirements>
>
> </dependency-resolution>
>
> </configuration>
>
> </plugin>
>
> </plugins>
>
> </pluginManagement>
>
> </build>
>
> 

>
>
>
> See http://git.eclipse.org/c/tcf/org.eclipse.tcf.git/tree/pom.xml for
> details.
>
>
>
> What is wrong with it?
>
>
>
> Thanks, Best regards, Uwe J
>
>
>
>
>
> *From:* tycho-user-***@eclipse.org [
> mailto:tycho-user-***@eclipse.org <tycho-user-***@eclipse.org>] *On
> Behalf Of *Stieber, Uwe
> *Sent:* Mittwoch, 13. August 2014 15:28
> *To:* tycho-***@eclipse.org
> *Subject:* [tycho-user] Tycho 0.21 Surefire Plugin Dependency declaration
>
>
>
> Hi guys,
>
>
>
> 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
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
> tycho-user mailing list
> tycho-***@eclipse.org
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/tycho-user
>
>
>
>
>
> --
>
> Tschö Marco
>
>
> _______________________________________________
> tycho-user mailing list
> tycho-***@eclipse.org
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/tycho-user
>
>
>
>
>
> --
>
> Tschö Marco
> ------------------------------
> This e-mail, including any attached files, may contain confidential and
> privileged information for the sole use of the intended recipient. Any
> review, use, distribution, or disclosure by others is strictly prohibited.
> If you are not the intended recipient (or authorized to receive information
> for the intended recipient), please contact the sender by reply e-mail and
> delete all copies of this message.
>
> _______________________________________________
> tycho-user mailing list
> tycho-***@eclipse.org
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/tycho-user
>



--
Tschö Marco
Oberlies, Tobias
2014-08-29 15:18:54 UTC
Permalink
You requested to install '>org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0'

You indeed have:

<id>>org.eclipse.tcf.te.tcf.feature</id>

It’s all there in the error message.

Regards
Tobias


From: tycho-user-***@eclipse.org [mailto:tycho-user-***@eclipse.org] On Behalf Of Stieber, Uwe
Sent: Donnerstag, 14. August 2014 08:48
To: Tycho user list
Subject: Re: [tycho-user] Tycho 0.21 Surefire Plugin Dependency declaration

Hi Marco,

The “.feature.group” is added again to the error message. The platform definition does look as following



<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<configuration>
<dependency-resolution>
<extraRequirements>
<requirement>
<type>eclipse-feature</type>
<id>org.eclipse.sdk</id>
<versionRange>0.0.0</versionRange>
</requirement>
<requirement>
<type>eclipse-feature</type>
<id>>org.eclipse.tcf.te.tcf.feature</id>
<versionRange>0.0.0</versionRange>
</requirement>
</extraRequirements>
</dependency-resolution>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>



See http://git.eclipse.org/c/tcf/org.eclipse.tcf.git/tree/pom.xml.

Thanks, Best regards, Uwe ☺



From: tycho-user-***@eclipse.org<mailto:tycho-user-***@eclipse.org> [mailto:tycho-user-***@eclipse.org] On Behalf Of Marco Lehmann-Mörz
Sent: Donnerstag, 14. August 2014 08:23
To: Tycho user list
Subject: Re: [tycho-user] Tycho 0.21 Surefire Plugin Dependency declaration

Hi Uwe,

you did not remove ".feature.group" from org.eclipse.tcf.te.tcf.feature.feature.group as well.

CU
Marco


2014-08-14 8:16 GMT+02:00 Stieber, Uwe <***@windriver.com<mailto:***@windriver.com>>:
Hi again,

And if I remove the “.feature.group” from the <id> tags, it seems to get over the “o.e.sdk” feature requirement, but it keep failing for the “o.e.tcf.te.tcf.feature” feature requirement.



[ERROR] Cannot resolve project dependencies:
[ERROR] You requested to install '>org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0' but it could not be found
[ERROR]
[INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with exception(s)
[INFO] o.h.m.e.h.MavenExecutionResultHandler - [1] org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: No solution found because the problem is unsatisfiable.: [Unable to satisfy dependency from tycho-extra-1407996811065 0.0.0.1407996811065 to >org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0.; Unable to satisfy dependency from tycho-1407996811371 0.0.0.1407996811371 to >org.eclipse.tcf.te.tcf.feature.feature.group 0.0.0.; No solution found because the problem is unsatisfiable.]



See https://hudson.eclipse.org/tcf/job/tcf-master-tests/3/console for details.

Best regards, Uwe ☺


From: tycho-user-***@eclipse.org<mailto:tycho-user-***@eclipse.org> [mailto:tycho-user-***@eclipse.org<mailto:tycho-user-***@eclipse.org>] 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

Hi,

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
[ERROR]
[INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with exception(s)
[INFO] o.h.m.e.h.MavenExecutionResultHandler - [1] 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.]



See https://hudson.eclipse.org/tcf/job/tcf-master-tests/2/console for all the details.

The target platform has been configured as advised in https://bugs.eclipse.org/bugs/show_bug.cgi?id=436617#c11.



<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<configuration>
<dependency-resolution>
<extraRequirements>
<requirement>
<type>eclipse-feature</type>
<id>org.eclipse.sdk.feature.group</id>
<versionRange>0.0.0</versionRange>
</requirement>
<requirement>
<type>eclipse-feature</type>
<id>>org.eclipse.tcf.te.tcf.feature.feature.group</id>
<versionRange>0.0.0</versionRange>
</requirement>
<requirement>
<type>eclipse-plugin</type>
<id>org.eclipse.tcf.te.tests</id>
<versionRange>0.0.0</versionRange>
</requirement>
</extraRequirements>
</dependency-resolution>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>



See http://git.eclipse.org/c/tcf/org.eclipse.tcf.git/tree/pom.xml for details.

What is wrong with it?

Thanks, Best regards, Uwe ☺


From: tycho-user-***@eclipse.org<mailto:tycho-user-***@eclipse.org> [mailto:tycho-user-***@eclipse.org] On Behalf Of Stieber, Uwe
Sent: Mittwoch, 13. August 2014 15:28
To: tycho-***@eclipse.org<mailto:tycho-***@eclipse.org>
Subject: [tycho-user] Tycho 0.21 Surefire Plugin Dependency declaration

Hi guys,

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 ☺









_______________________________________________
tycho-user mailing list
tycho-***@eclipse.org<mailto:tycho-***@eclipse.org>
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user



--
Tschö Marco
Continue reading on narkive:
Loading...