Skip to main content

[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

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

Back to the top