[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [tycho-user] Adding NL fragment to test plugin: upgraded Tycho, <dependencies> behaviour changed?
|
Did you try using extraRequirements instead [1] ?
Jan
[1] https://wiki.eclipse.org/Tycho/Packaging_Types#eclipse-test-plugin
On 01/09/16 14:21, "tycho-user-bounces@xxxxxxxxxxx on behalf of Justin Dolezy" <tycho-user-bounces@xxxxxxxxxxx on behalf of justin.dolezy@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hi Tycho users,
I’ve just upgraded from Tycho 0.17.0 to 0.25.0 (if it ain’t broke don’t fix it.. forced to upgrade as not working with the Neon platform, but did with Mars).
We have some tests that require an NL fragment to be installed as we check things like URLs in the translations. The fragment gets included via a surefire <dependency> configuration in the test plugin pom, ie:
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<dependencies>
<dependency>
<type>eclipse-plugin</type>
<artifactId>com.nd.common.nl <http://com.nd.common.nl></artifactId>
<version>0.0.0</version>
</dependency>
</dependencies>
</configuration>
</plugin>
</plugins>
</build>
Whereas this used to work fine (also with 0.18.1 and 0.19.0, then started having various other issues before it was getting as far as this plugin) now it’s complaining that it can’t find the NL fragment:
INFO] --- tycho-surefire-plugin:0.25.0:test (default-test) @ com.nd.common.tests ---
[INFO] {osgi.os=win32, osgi.ws=win32, org.eclipse.update.install.features=true, osgi.arch=x86}
[ERROR] Cannot resolve project dependencies:
[ERROR] You requested to install 'bundle
com.nd.common.nl <http://com.nd.common.nl> 0.0.0' but it could not be found
[ERROR]
[ERROR] See
http://wiki.eclipse.org/Tycho/Dependency_Resolution_Troubleshooting <http://wiki.eclipse.org/Tycho/Dependency_Resolution_Troubleshooting> for help.
The com.nd.common.nl <http://com.nd.common.nl> fragment was the last thing Tycho compiled successfully so should be present in the reactor - not sure why it’s now complaining.
Has something changed in this area and we need to handle this another way now? Couldn’t spot anything relevant in the dependency resolution troubleshooting page or release notes..
Many thanks,
Justin