Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Priority for P2 repositories

Actually, this is not quite true: where Tycho has an influence on this, there may be a defined order of repositories, but there is no support for this in p2. I requested this once (https://bugs.eclipse.org/bugs/show_bug.cgi?id=337790), but the request was mostly rejected.

Note that the repository order is only relevant if you are building bundles without automatic qualifier. In this case, it is undefined if an artefact is taken from the reactor or from the local Maven repository, e.g. when creating a product installation.

The solution is simple: Always use a timestamp-based qualifier (which is the default if you suffix all your bundle/feature versions with ".qualifier").

Regards
Tobias


> -----Original Message-----
> From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-
> bounces@xxxxxxxxxxx] On Behalf Of Rafael M Teixeira
> Sent: 24 June 2011 14:58
> To: Tycho user list
> Subject: Re: [tycho-user] Priority for P2 repositories
> 
> Hi Igor, thanks for the reply.
> 
> I just wanted to have more control over where Tycho gets packages from,
> so that it could, for example, get packages from local repositories when
> they are available locally, and so on.
> 
> Regards,
> Rafael M Teixeira
> 
> On 06/21/2011 02:39 AM, Igor Fedorenko wrote:
> > Tycho is expected to access p2 repositories in the order they are
> > specified in pom.xml or .target file.
> >
> > Out of curiosity, why do you need to get package from a specific
> > repository?
> >
> > --
> > Regards,
> > Igor
> >
> > On 11-06-18 1:33 AM, Rafael M Teixeira wrote:
> >> Hi everyone,
> >>
> >> I'd like to know if there's a specific order in which the p2
> >> repositories are searched to find features and plugins required to
> build
> >> a product. For example, if a required feature can be found in more than
> >> one repository, is there a way to force Tycho to get this package from
> >> one or another repository?
> >>
> >> Regards,
> >> Rafael M Teixeira
> > _______________________________________________
> > 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


Back to the top