Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] conditionally skip eclipse product build

This is what I do for my Eclipse based product. Each commit will run Tycho for plugins and features (and tests, of course) only and on a daily basis, I build the product enabling the profile


On Wed, Mar 11, 2015 at 8:55 AM, Knut Wannheden <knut.wannheden@xxxxxxxxxx> wrote:
Hi all,

I have noticed that during our Tycho builds the actual building of the Eclipse product and update sites (handled by the Maven module with eclipse-repository packaging using the tycho-p2-director-plugin plugin) takes a lot of time. Depending on the build (e.g. CI verification builds) this may not be required, so I was looking into skipping that.

What I first did was to add a Maven profile to the product pom.xml containing the <build> with the tycho-p2-director-plugin so that the product would only be built when the corresponding profile was specified on the command line. This worked well but I noticed that Maven would still spend some time (around 6 seconds) processing the product module (it would for instance still archive the repository). So as a next step I moved the profile to the aggregator module where I using that only conditionally include the product module in the build.

I would like to know if there are any best practices regarding this. Are there for instance some good reasons not to do what I am doing or are there better ways?



tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit


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

Back to the top