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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
