[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [tycho-user] Define target-platform-configuration in child pom
|
Hello,
My apologies, the solutions I used is working, the problem was in the inheritance of my projects.
I had :
Parent
| Child 1
| Child a of child 1
| Child b of child 1
But the parent of the Child of child was parent and not Child 1, so the redefinition of my artifactId wasn't known.
Thanks for your support.
Anthony
De : tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] De la part de DELHELLE Anthony
Envoyé : mercredi 30 mars 2016 19:31
À : tycho-user@xxxxxxxxxxx
Objet : [tycho-user] Define target-platform-configuration in child pom
Hello,
I would like to define a target platform configuration to a child pom using a profile. I got a parent pom which is defining lots of things for the main compilation and in the child I would like to be able to make my Jenkins build in stand alone using a compiled snapshot as P2.
I added the following to my child pom.xml :
<profiles>
<profile>
<id>build.jenkins.git-review</id>
<modules>
<module>../TargetPlatform</module>
</modules>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho-version}</version>
<configuration>
<resolver>p2</resolver>
<target>
<artifact>
<groupId>${project.groupId}</groupId>
<artifactId>TargetPlatform</artifactId>
<version>${project.version}</version>
<classifier>targetp2</classifier>
</artifact>
</target>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
So when I am using the profile, I add the TargetPlatform to the modules and use it for compilation.
This is not working but when I am adding the same definition in the parent pom (minus the modules part), this is working.
Do you have any answers ?
Thanks.
Anthony
PS : I am using tycho 0.21.0 and maven 3.2.3.
--
TECH'advantage SA - 1 rue Isabey 92500 RUEIL MALMAISON
Capital EUR 219 300,00 - RCS Nanterre B 408 832 301 - TVA FR 09 408 832 301 00027
--
TECH'advantage SA - 1 rue Isabey 92500 RUEIL MALMAISON
Capital EUR 219 300,00 - RCS Nanterre B 408 832 301 - TVA FR 09 408 832 301 00027