Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Building multiple products with separate repositories

I've never tried it, but the first thing that I would try would be creating an aggregate pom that references modules for each of the three products.  See https://www.smartics.eu/confluence/display/BLOG/2013/07/22/Using+Aggregate+and+Parent+POMs.  Each of the modules for a product would have its own pom that would use <packaging>eclipse-repository</packaging>.  You'd build from the aggregate pom, and that would instruct maven to use Tycho to build the modules, creating an eclipse-repository package for each of the modules.  In theory.  :)

Best of luck,
---Tom

On 2/9/16, 7:46 PM, "tycho-user-bounces@xxxxxxxxxxx on behalf of Timothy Vogel" <tycho-user-bounces@xxxxxxxxxxx on behalf of tvogel@xxxxxxx> wrote:

I have a working tycho build that builds three related RCP products.  Current configuration has only one repository with bundles from all three RCP products intermingled.   I want to have three different repositories each with only the plugins for that specific RCP product.

What is the best way to accomplish this?

Extract from current pom in project with the three .product files.

<plugin>
<groupId>${tycho-groupid}</groupId>
<artifactId>tycho-p2-director-plugin</artifactId>
<version>${tycho-version}</version>
<executions>
<execution>
<id>materialize-products</id>
<goals>
<goal>materialize-products</goal>
</goals>
</execution>
</executions>
<configuration>
<products>
<product>
<id>com.my.product1</id>
<attachId>product1</attachId>
</product>
<product>
<id>com.my.product2</id>
<attachId>product2</attachId>
</product>
<product>
<id>com.my.product3</id>
<attachId>product3</attachId>
</product>
</products>
</configuration>
</plugin>




Back to the top