avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Schaible <Joerg.Schai...@Elsag-Solutions.com>
Subject RE: Maven Versioning
Date Thu, 26 Feb 2004 16:50:53 GMT
Niclas Hedhman wrote on Thursday, February 26, 2004 5:47 PM:

> On Friday 27 February 2004 00:41, Jörg Schaible wrote:
>> Niclas Hedhman wrote on Thursday, February 26, 2004 5:36 PM:
>>> HI,
>>> 
>>> I thought that Maven was supposed to handle the version resolution
>>> more or less automatically. 
>>> 
>>> If a dependency is declared on 1.1.1, but there is a 1.1.2 in the
>>> cache, shouldn't it just use 1.1.2 instead ?
>> 
>> No. You alway get the version you have declared in your project.xml.
>> The only exception to this rule are snapshots. You can specify them
>> with package-1.0-SNAPSHOT. In this case Maven will always look if
>> there is a newer version available (you may omit the version number
>> in this case also).
> 
> Thanks
> 
> So does a  3-SNAPSHOT, give me a 3.1 if it is available, and not the
> 4.0 that is also available?

No. But it will always look at all given remote repositories for a new 3-SNAPSHOT. Any explicit
versions are taken from your local repository directly (if they're already there).

Regards,
Jörg

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org


Mime
View raw message