Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Using --update-snapshots with Tycho

Thanks Jan (and Nick),

This reminds me of another question ... mostly just curious. I seem to recall a bug to allow Tycho's p2 cache to be specified independently of the local maven artifacts cache -- I *think* so they could be "cleaned" (deleted) independently. Or did I just dream that? I could not find any bug on this in Tycho, searching for "p2 cache". I am just curious if this is possible. I do not have a concrete use-case in mind, except that in some builds, I could imagine the maven artifact cache would be more "stable" than the p2 cache.

Thanks, if this "rings any bells". If not ... nothing urgent.

P.S. in our production builds we do remove all caches and start fresh each time (and do -Dtycho.localArtifacts=ignoreand specifies exact pre-reqs via a .target file). The above questions are intended more for "quick and dirty" local (or Gerrit) builds that are intended to give quick feedback to developers wanting to quickly sanity check some change before they commit the code. In those cases, "speed of feedback" is more important than usual.

Thanks again,





From:        "Sievers, Jan" <jan.sievers@xxxxxxx>
To:        Tycho user list <tycho-user@xxxxxxxxxxx>,
Date:        12/14/2015 11:57 AM
Subject:        Re: [tycho-user] Using --update-snapshots with Tycho
Sent by:        tycho-user-bounces@xxxxxxxxxxx




--update-snaphsots only affects maven dependency resolution.

p2 has no SNAPSHOT version concept.

Tycho uses p2 to resolve dependencies from the effective target platform [1]
This includes locally installed artifacts. Unfortunately, to my knowledge p2 has no strict preference for "latest version" in case there are multiple possible solutions. See the lengthy discussion on [2].

There are some things you can do to avoid the p2 resolver picking lower versions:

- for full rebuilds, don't resolve using locally installed artifacts (using 'mvn install') from previous builds.
 This is done with -Dtycho.localArtifacts=ignore
- avoid referencing several development build p2 repos at the same time for dependency resolution. Only use the latest one.

Regards,
Jan

[1]
https://wiki.eclipse.org/Tycho/Target_Platform#Effective_content_of_the_target_platform
[2]
https://bugs.eclipse.org/bugs/show_bug.cgi?id=365962



On 14/12/15 17:28, "tycho-user-bounces@xxxxxxxxxxx on behalf of David M Williams" <tycho-user-bounces@xxxxxxxxxxx on behalf of david_williams@xxxxxxxxxx> wrote:

>I am wondering if anyone has experience using --update-snapshots with Tycho? And, if so, I am wondering if it "works like it sounds". Or, is it somehow more specific to "pure Maven builds"?
>
>
>And it may be an orthogonal question, but I am wondering how Tycho "updates p2 prerequisites". That is, will Tycho always "get the latest", or will it just use what is in it's "local cache" if it satisfies constraints.
>
>
>Thanks for any information.
>
>
>
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user




Back to the top