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.