Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] Not sure where a dependency giving an error is defined?

Hi,

I have been landed with a Tycho setup where the guy who did it has gone. So a steep learning curve.

There is a target platform as well. I am trying to remove a dependency on Eclipse CDO and replace it with EMFStore.

The dependency has somehow gone missing from a what was a working Maven build from a year ago. But I need to remove it and all other CDO dependencies anyway.

The error I get from mvn clean verify in the top level directory where my tycho pom.xml is is as follows:

...
[ERROR] Internal error: java.lang.RuntimeException: Failed to resolve target definition /home/david/.m2/repository/com/example/edm/kepler/1.0.0-SNAPSHOT/kepler-1.0.0-SNAPSHOT.target: Could not find "org.eclipse.emf.teneo.hibernate.sdk.feature.group/2.0.1.v201406151004" in the repositories of the current location -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: Failed to resolve target definition /home/david/.m2/repository/com/example/edm/kepler/1.0.0-SNAPSHOT/kepler-1.0.0-SNAPSHOT.target
...

The top level pom.xml has:

<?xml version="1.0" encoding="UTF-8"?>
<project
<modelVersion>4.0.0</modelVersion>

<groupId>com.example.edm</groupId>
<artifactId>parent</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>pom</packaging>

<properties>
<tycho.version>0.20.0</tycho.version>
<tycho-extras.version>0.20.0</tycho-extras.version>
<tycho-repo.url>https://oss.sonatype.org/content/groups/public/</tycho-repo.url>
</properties>

<modules>
... roughly 20 modules listed here...
</modules>

<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-maven-plugin</artifactId>
<version>${tycho.version}</version>
<extensions>true</extensions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho.version}</version>
<configuration>
<target>
<artifact>
<groupId>com.example.edm</groupId>
<artifactId>kepler</artifactId>
<version>1.0.0-SNAPSHOT</version>
</artifact>
</target>
<environments>
<environment>
<os>linux</os>
<ws>gtk</ws>
<arch>x86_64</arch>
</environment>
<environment>
<os>win32</os>
<ws>win32</ws>
<arch>x86_64</arch>
</environment>
<environment>
<os>macosx</os>
<ws>cocoa</ws>
<arch>x86_64</arch>
</environment>
<!-- <environment> <os>linux</os> <ws>gtk</ws> <arch>x86</arch> </environment> 
<environment> <os>win32</os> <ws>win32</ws> <arch>x86</arch> </environment> 
<environment> <os>macosx</os> <ws>cocoa</ws> <arch>x86</arch> </environment> -->
</environments>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<version>${tycho.version}</version>
<configuration>
<useUIHarness>true</useUIHarness>
<useUIThread>true</useUIThread>
<argLine>-Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=256m
-Dorg.eclipse.ui.testsDisableWorkbenchAutoSave=true</argLine>
<product>org.eclipse.platform.ide</product>
<application>org.eclipse.ui.ide.workbench</application>
<dependencies>
<dependency>
<type>p2-installable-unit</type>
<artifactId>org.eclipse.platform</artifactId>
<version>0.0.0</version>
</dependency>
<dependency>
<groupId>org.jmock</groupId>
<artifactId>jmock-legacy</artifactId>
<version>2.5.1</version>
</dependency>
<dependency>
<groupId>org.jmock</groupId>
<artifactId>jmock-junit4</artifactId>
<version>2.5.1</version>
</dependency>
</dependencies>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-compiler-plugin</artifactId>
<version>${tycho.version}</version>
<configuration>
<encoding>UTF-8</encoding>
<source>1.7</source>
<target>1.7</target>
<excludeResources>
<excludeResource>**/*.aj</excludeResource>
</excludeResources>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-source-plugin</artifactId>
<version>${tycho.version}</version>
<executions>
<execution>
<id>plugin-source</id>
<goals>
<goal>plugin-source</goal>
</goals>
<configuration>
<finalName>${project.artifactId}_${unqualifiedVersion}.${buildQualifier}</finalName>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-packaging-plugin</artifactId>
<version>${tycho.version}</version>
<dependencies>
<dependency>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-buildtimestamp-jgit</artifactId>
<version>${tycho-extras.version}</version>
</dependency>
</dependencies>
<configuration>
<strictBinIncludes>false</strictBinIncludes>
<format>'v'yyyyMMdd-HHmm</format>
<timestampProvider>jgit</timestampProvider>
<finalName>${project.artifactId}_${unqualifiedVersion}.${buildQualifier}</finalName>
<jgit.dirtyWorkingTree>warning</jgit.dirtyWorkingTree>
<jgit.ignore>
</jgit.ignore>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>

<profiles>
<profile>
<id>mac</id>
<activation>
<os>
<family>mac</family>
</os>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<version>${tycho.version}</version>
<configuration>
<argLine>-Xms512m -Xmx1024m -XX:PermSize=256m
-XX:MaxPermSize=256m
-Dorg.eclipse.ui.testsDisableWorkbenchAutoSave=true
-XstartOnFirstThread</argLine>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

The targetplatform pom.xml has:

<?xml version="1.0" encoding="UTF-8"?>
<project
<modelVersion>4.0.0</modelVersion>
    <groupId>com.example.edm</groupId>
<artifactId>kepler</artifactId>
<packaging>eclipse-target-definition</packaging>
<name>Eclipse Kepler Target Definition</name>

<parent>
<artifactId>parent</artifactId>
<groupId>com.example.edm</groupId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<!--  adding local jars -->
    <build>
<plugins>
<plugin>
<inherited>false</inherited>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<executions>
<execution>
<id>org.eclipse.emf.common</id>
<phase>install</phase>
<goals>
<goal>install-file</goal>
</goals>
<configuration>
<file>lib/org.eclipse.emf.common_2.9.1.v20130827-0309.jar</file>
<groupId>org.eclipse.emf</groupId>
<artifactId>org.eclipse.emf.common</artifactId>
<version>2.9.1</version>
<packaging>jar</packaging>
</configuration>
</execution>
<execution>
<id>org.eclipse.emf.ecore</id>
<phase>install</phase>
<goals>
<goal>install-file</goal>
</goals>
<configuration>
<file>lib/org.eclipse.emf.ecore_2.9.1.v20130827-0309.jar</file>
<groupId>org.eclipse.emf</groupId>
<artifactId>org.eclipse.emf.ecore</artifactId>
<version>2.9.1</version>
<packaging>jar</packaging>
</configuration>
</execution>
<execution>
<id>com.google.code.gson.gson</id>
<phase>install</phase>
<goals>
<goal>install-file</goal>
</goals>
<configuration>
<file>lib/gson-1.2.2.jar</file>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>1.2.2</version>
<packaging>jar</packaging>
</configuration>
</execution>
<execution>
<id>org.jboss.bpm.report-core</id>
<phase>install</phase>
<goals>
<goal>install-file</goal>
</goals>
<configuration>
<file>lib/report-core-1.3.0.jar</file>
<groupId>org.jboss.bpm</groupId>
<artifactId>report-core</artifactId>
<version>1.3.0</version>
<packaging>jar</packaging>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

I removed all CDO dependencies from this pom already.

finally i thought this has to be listed somewhere inside a file in my project directory structure so I ran:

david@david-desktop:~/git/edm$ grep -r "org.eclipse.emf.teneo.hibernate.sdk.feature.group" . 

It did not find a single reference. So how is it still referenced within the pom dependencies somewhere to be able to give that error?

Thanks...

Back to the top