Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Profiles and targets

Yes, and it is not a Tycho problem but rather a Maven problem. The configuration for the plugin that is done by the first activated profile is replace by the configuration done by the second profile.
This can be done: see http://stackoverflow.com/questions/1771561/maven-is-it-possible-to-override-the-configuration-of-a-plugin-already-defined or http://maven.apache.org/pom.html#Plugins

Jeff


On Sat, Nov 23, 2013 at 8:11 PM, Wim Jongman <wim.jongman@xxxxxxxxx> wrote:
Hi,

I have this setup where I can specify the target platform environment with a profile [1]. When I build with 

mvn verify -Pwin32,win64,kepler

Then there is only one product created against kepler and not two as I expected.

Is this the way it works or am I right to expect two products?

Regards,

Wim


<profiles>
<profile>
<id>win32</id>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho.version}</version>
<configuration>
<environments>
<environment>
<os>win32</os>
<ws>win32</ws>
<arch>x86</arch>
</environment>
</environments>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>win64</id>
<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho.version}</version>
<configuration>
<environments>
<environment>
<os>win32</os>
<ws>win32</ws>
<arch>x86_64</arch>
</environment>
</environments>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>kepler</id>
<repositories>
<repository>
<id>platform_kepler</id>
<layout>p2</layout>
</repository>

<repository>
<id>release-train_kepler</id>
<layout>p2</layout>
</repository>
</repositories>
</profile>

<profile>
<id>luna</id>
<repositories>
<repository>
<id>platform_luna</id>
<layout>p2</layout>
</repository>

<repository>
<id>release-train_luna</id>
<layout>p2</layout>
</repository>
</repositories>
</profile>

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user




--
Jeff MAURY


"Legacy code" often differs from its suggested alternative by actually working and scaling.
 - Bjarne Stroustrup

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com
http://www.twitter.com/jeffmaury

Back to the top