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

--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. 
>
>
>

Back to the top