Hi Lóránt,

Lóránt Pintér wrote at Dienstag, 23. März 2010 10:21:

> Hi,
> 
> I am in doubt regarding what version numbers I should use for my
> product. There are two schemes I can think of right now:
> 
> 1) 1.0-m1-SNAPSHOT -> 1.0-m1 -> 1.0-m2-SNAPSHOT -> 1.0-m2 ->
> 1.0-rc1-SNAPSHOT -> 1.0-rc1 ...
> 
> 2) 1.0-SNAPSHOT -> 1.0-m1 -> 1.0-SNAPSHOT -> 1.0-m2 -> 1.0-SNAPSHOT ->
> 1.0-rc1 ...
> 
> If I use the first solution, I can always tell by looking at even the
> SNAPSHOT version numbers what milestone we are getting towards.
> However, if I use the second version, my other products that depend on
> this product won't need to "upgrade" every time there is a new
> milestone release. This is a high maintenance, error-prone task that I
> would like to avoid.
> 
> What do you suggest?

Definitely 1, because 1.0-SNAPSHOT is *always* the lowest version in this 
scenario:

1.0-SNAPSHOT < 1.0-rc1 < 1.0-rc2 < 1.0 < 1.0.1

i.e. the dependency resolution of Maven will never pick the SNAPSHOT if you 
have the artifact in your transitive deps one time with the SNAPSHOT and one 
time with a released version.

Background:
http://jira.codehaus.org/browse/MNG-2323

- Jörg


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to