[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [tycho-user] Tests are not running after upgrading from tycho 0.20 to 0.21
|
Hello,
thanks fot the assistance. The filtering solved a part of the problem. The error message is now smaller. I think I have a combination of both problems. To solve the issue with jdt core I used the following filter:
<filters>
<filter>
<type>eclipse-plugin</type>
<id>org.eclipse.jdt.core</id>
<restrictTo>
<version>3.10.0.v20140902-0626</version>
</restrictTo>
</filter>
</filters>
Now the error that remains is that my product is missing. The product is part of the same built so I assume that it should be there as in version 0.20. The wiki (https://wiki.eclipse.org/Tycho/Target_Platform#Effective_content_of_the_target_platform) also says that it should be available:
"Apart from the explicitly configured content, the target platform also contains the following artifacts:
• Other artifacts from the same reactor
• Locally built artifacts in the local Maven repository
Finally, it is possible to remove artifacts again from the target platform through a filtering syntax."
Do I need to explicitly make the product somehow available? The options listed in the wiki do not work for me as far as I understand.
Thanks,
Ralph
-----Original Message-----
From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Sievers, Jan
Sent: Mittwoch, 29. Oktober 2014 11:44
To: Tycho user list
Subject: Re: [tycho-user] Tests are not running after upgrading from tycho 0.20 to 0.21
not sure if OTDT is the root cause here, but you may want to filter out the OTDT JDT version
https://bugs.eclipse.org/bugs/show_bug.cgi?id=350133#c40
to rule that out.
Looks like the IU referenced org.melanee.core.product is simply not part of your target platform.
also see https://wiki.eclipse.org/Tycho/Dependency_Resolution_Troubleshooting
Jan
From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Alex Blewitt
Sent: Mittwoch, 29. Oktober 2014 10:16
To: Tycho user list
Subject: Re: [tycho-user] Tests are not running after upgrading from tycho 0.20 to 0.21
This is a known bug in the eclipse repository because there is an OTDT which attempts to patch JDT. If you build a dependency onto JDT as a feature it will try and install OTDT.
We have a mirror of the main eclipse repository that filters out OTDT for the problems it causes. If you depend on an explicit version of JDT with an exact match or depend on a feature like SDK that has an explicit version match then the problem goes away.
This is really a P2 problem rather than a Tycho one though — you'd see the same in a non tycho build. The reason you're seeing it now is that Tycho has an upgraded version of P2 and subtle differences (and remote repository content) can change between versions.
Alex
Sent from my iPhat 6
On 29 Oct 2014, at 09:08, Ralph Gerbig <gerbig@xxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hello,
I am doing “mvn clean install” on this repository: https://github.com/deep-modeling/melanee-core . With version 0.20 everything works fine. After upgrading to version 0.21 I get the following errors:
[INFO] --- tycho-surefire-plugin:0.21.0:test (default-test) @ org.melanee.core.tests.plm --- [INFO] Cannot complete the request. Generating details.
[INFO] Cannot complete the request. Generating details.
[INFO] {osgi.os=linux, osgi.ws=gtk, org.eclipse.update.install.features=true, osgi.arch=x86} [ERROR] Cannot resolve project dependencies:
[ERROR] You requested to install 'org.melanee.core.product 0.0.0' but it could not be found [ERROR]
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:0.21.0:test (default-test) on project org.melanee.core.tests.plm: No solution found because the problem is unsatisfiable.: [Unable to satisfy dependency from org.eclipse.jdt.core 3.10.0.v_OTDT_r230_201406101339 to org.eclipse.objectteams.otdt.core.patch.feature.group [2.0.0,3.0.0).; Unable to satisfy dependency from org.eclipse.jdt.core 3.10.0.v_OTDT_r231_201409160728 to org.eclipse.objectteams.otdt.core.patch.feature.group [2.0.0,3.0.0).; Unable to satisfy dependency from tycho-extra-1414573481057 0.0.0.1414573481057 to org.melanee.core.product 0.0.0.; Unable to satisfy dependency from tycho-1414573481104 0.0.0.1414573481104 to org.melanee.core.product 0.0.0.; No solution found because the problem is unsatisfiable.] -> [Help 1]
My pom.xml looks like described in the New & Noteworthy section of version 0.21. Here it is (https://github.com/deep-modeling/melanee-core/blob/master/tests/org.melanee.core.tests.plm/pom.xml):
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.melanee.tycho.build</groupId>
<artifactId>tests</artifactId>
<version>2.0.0-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<groupId>org.melanee.tycho.build</groupId>
<artifactId>org.melanee.core.tests.plm</artifactId>
<packaging>eclipse-test-plugin</packaging>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<version>${tycho.version}</version>
<configuration>
<product>org.melanee.core.product</product>
<testRuntime>p2Installed</testRuntime>
<useUIHarness>false</useUIHarness>
<testSuite>org.melanee.core.tests.plm</testSuite>
<testClass>org.melanee.core.tests.plm.PLMTestSuite</testClass>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho.version}</version>
<configuration>
<dependency-resolution>
<extraRequirements>
<!-- add dependency to product IU under test -->
<requirement>
<type>p2-installable-unit</type>
<id>org.melanee.core.product</id>
<versionRange>0.0.0</versionRange>
</requirement>
</extraRequirements>
</dependency-resolution>
</configuration>
</plugin>
</plugins>
</build>
</project>
Are there any advices on how to solve/debug this problem?
Best Regards,
Ralph
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/tycho-user