classifier is optional (and no longer needed if you use packaging type eclipse-target-definition [1]) Jan [1] https://wiki.eclipse.org/Tycho/Packaging_Types#eclipse-target-definition From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Timothy Vogel Sent: Freitag, 20. Februar 2015 09:00 To: 'Tycho user list' Subject: Re: [tycho-user] Question on Maven/Tycho target mechanism using .target file Disclaimer: I am a tycho newbie . I think you need to add a classifier tag. Also be sure that the artifactId tag has the name of the project that contains the target file specified in the <classifier>. I do not have a <relativePath> tag at all in the config element. <artifact> <groupId>com.etas.congra.releng</groupId> <artifactId>com.etas.congra.releng.targetplatform</artifactId> <relativePath>../../releng/com.etas.congra.releng.targetplatform/pom.xml</relativePath> <classifier>unqualified file name of target file</classifier> </artifact> Tim From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Geyer-Blaumeiser Lars (ETAS/ESW ETAS/ESW5) Sent: Friday, February 20, 2015 14:10 To: tycho-user@xxxxxxxxxxx Subject: [tycho-user] Question on Maven/Tycho target mechanism using .target file Hello all, I have a problem with the Maven/Tycho mechanism to resolve a .target file. I followed the information on https://wiki.eclipse.org/Tycho/Target_Platform#Target_files, but do not get the expected results. Here are some facts: Target file: <target name="Eclipse Kepler Target" sequenceNumber="1424335573"> <locations> <location includeMode="slicer" includeAllPlatforms="false" includeSource="false" includeConfigurePhase="false" type="InstallableUnit"> <unit id="org.eclipse.sdk.feature.group" version="0.0.0"/> <unit id="org.eclipse.equinox.executable.feature.group" version="0.0.0"/> <unit id="org.eclipse.equinox.p2.sdk.feature.group" version="0.0.0"/> . <repository id="kepler" location="http://korvm016.apac.bosch.com/updatesites/thirdparty/eclipse_4.3_kepler/"/> </location> <location includeMode="slicer" includeAllPlatforms="false" includeSource="false" includeConfigurePhase="false" type="InstallableUnit"> <unit id="ch.qos.logback.classic" version="0.0.0"/> <unit id="ch.qos.logback.classic.source" version="0.0.0"/> <unit id="ch.qos.logback.core" version="0.0.0"/> <unit id="ch.qos.logback.core.source" version="0.0.0"/> <unit id="ch.qos.logback.slf4j" version="0.0.0"/> <unit id="ch.qos.logback.slf4j.source" version="0.0.0"/> <unit id="org.slf4j.api" version="0.0.0"/> <unit id="org.slf4j.api.source" version="0.0.0"/> .. <repository id="orbit" location="http://korvm016.apac.bosch.com/updatesites/thirdparty/orbit-buildrepo-R20140525021250/"/> </location> .. </locations> </target> The pom-File for the target module: <?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>com.etas.congra.releng</groupId> <artifactId>com.etas.congra.releng.parent</artifactId> <version>0.1.0-SNAPSHOT</version> <relativePath>../../releng/com.etas.congra.releng.parent/pom.xml</relativePath> </parent> <groupId>com.etas.congra.releng</groupId> <artifactId>com.etas.congra.releng.targetplatform</artifactId> <packaging>eclipse-target-definition</packaging> </project> I do not have a version in here, because I found a page in the web which told the story that a version in the pom for the eclipse-target-packaging does not work and in fact, specifying a version resulted in not resolving the following configuration in the parent pom used for all other maven modules: <plugins> <plugin> <groupId>org.eclipse.tycho</groupId> <artifactId>target-platform-configuration</artifactId> <version>${tycho-version}</version> <configuration> <target> <artifact> <groupId>com.etas.congra.releng</groupId> <artifactId>com.etas.congra.releng.targetplatform</artifactId> <relativePath>../../releng/com.etas.congra.releng.targetplatform/pom.xml</relativePath> </artifact> </target> </configuration> </plugin> </plugins> With this in place I get the following error message during the maven build: [INFO] Scanning for projects... [INFO] Computing target platform for MavenProject: com.etas.congra.releng:com.etas.congra.log:0.1.0-SNAPSHOT @ D:\ConGra_IDE_Luna_win64\git\congra\plugins\com.etas.congra.log\pom.xml [INFO] Resolving dependencies of MavenProject: com.etas.congra.releng:com.etas.congra.log:0.1.0-SNAPSHOT @ D:\ConGra_IDE_Luna_win64\git\congra\plugins\com.etas.congra.log\pom.xml [INFO] Cannot complete the request. Generating details. [INFO] Cannot complete the request. Generating details. [INFO] {osgi.ws=win32, osgi.os=win32, osgi.arch=x86_64, org.eclipse.update.install.features=true} [ERROR] Cannot resolve project dependencies: [ERROR] Software being installed: com.etas.congra.log 0.1.0.qualifier [ERROR] Missing requirement: com.etas.congra.log 0.1.0.qualifier requires 'bundle ch.qos.logback.classic 1.0.7' but it could not be found [ERROR] It cannot resolve dependencies from the target, although the target works properly in the eclipse workspace and if all repositories mentioned in the target files are expressed as repository tags in the pom file, the build works. Has anybody an idea what is wrong in my configuration? Thanks and best regards, Lars Mit freundlichen Grüßen/Best Regards, Lars Geyer-Blaumeiser -- Dr. Lars Geyer-Blaumeiser ETAS GmbH Senior Engineer Borsigstr. 14 70469 Stuttgart Germany www.etas.com Phone +49 172 4815079 Lars.Geyer-Blaumeiser@xxxxxxxx Managing Directors: Friedhelm Pickhard, Bernd Hergert, Christopher White Chairman of Supervisory Board: Dr. Walter Schirm Registered Office: Stuttgart; Registration Court: Amtsgericht Stuttgart HRB 19033
↧
Re: [tycho-user] Question on Maven/Tycho target mechanism using .target file
↧