Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] tycho-built product and p2 update

There is actually a way to use the p2 director in Tycho to install  features after building the base product, as mentioned below as an alternative. The bugzilla [1] for this is sitting in NEW status, but you could use the patched 0.15.x on GitHub [2] where this is already implemented. The attached pom snippet contains the usage 

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=361722
[2] https://github.com/JonHubbard/tycho/tree/tycho-0.15.x

Thanks,
Jon

-----Original Message-----
From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Simon Goodall
Sent: Monday, July 23, 2012 12:20 PM
To: Tycho user list
Subject: Re: [tycho-user] tycho-built product and p2 update

Hi Xavier,

When you build your product, the feature version is set as an explicit value - version  7.4.0.201206291803 in this case - rather than a range. It is not possible to update this feature without updating the product build. It may be possible to include it transitively i.e. not included directly in the product but by another feature that is. Here you should be able to specify a version range. This is not something I have tried myself.

An alternative is to install the feature after building the base product e.g. using the p2 director application [1] - think installing an add-on feature in eclipse. I don't think there is a direct way in Tycho to do this but something based around the eclipserun-plugin [2] may work.

[1] http://wiki.eclipse.org/Equinox_p2_director_application
[2] http://wiki.eclipse.org/Tycho/Additional_Tools#tycho-eclipserun-plugin

Simon



On 23 July 2012 16:15, Xavier Shelton <xshel@xxxxxxxx> wrote:
> Hi,
>
> I have a hard time trying to update a tycho-built product using an 
> update site.
> My product is based on features, and what i need to do is just update 
> one of the feature included in my product.
>
> I got the following message:
>
>   Only one of the following can be installed at once:
>    xxxxxxxxxx  7.4.0.201206291803 (xxx.xxx.xxxxxx.xxxxxxxxxx.xx.xx
> 7.4.0.201206291803)
>    xxxxxxxxxx  7.4.0.201207191803 (xxx.xxx.xxxxxx.xxxxxxxxxx.xx.xx
> 7.4.0.201207191803)
>   Cannot satisfy dependency:
>     From: MyProduct 1.5.0.201207231448 (MyProduct 1.5.0.201207231448)
>     To:  xxx.xxx.xxxxxx.xxxxxxxxxx.feature.group [7.4.0.201206291803]
>
> Is this a tycho specific issue ? is there a way to configure the 
> product to make this possible ?
>
> I'm using tycho 0.15.0 and the eclipse-repository packaging for the product.
>
>
> Regards
>
> _______________________________________________
> tycho-user mailing list
> tycho-user@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/tycho-user
>
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user

Attachment: pom_snippet.xml
Description: pom_snippet.xml


Back to the top