I may be misunderstanding something, as I have still some problems
understanding artifact resolution in m2, but I thing the LATEST
keyword is useful in such a situation. AFAIK, the maven-metadata in
the repos contains pointers for latest (and release ?). This seems to
work for a whole artifact, whatever its version is. 

This may means that if you need latest from head, you could say 

<dependency>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>surefire-report-maven-plugin</artifactId>
</dependency>

and it would be resolved using the metadata which may contain :

<metadata>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>surefire-report-maven-plugin</artifactId>
  <version>2.0-beta-1</version>
  <versioning>
    <latest>2.0-beta-1</latest>
    <release>2.0-beta-1</release>
    <versions>
      <version>2.0-beta-1</version>
      <version>2.0</version>
    </versions>
    <lastUpdated>20051005032907</lastUpdated>
  </versioning>
</metadata>

OTOH, if you need a specific version, you can just tell it in the pom

<dependency>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>surefire-report-maven-plugin</artifactId>
  <version>2.0</version>
</dependency>

Not sure this means something, but the discussion is open...

-- 
Arnaud Bailly, Dr. - Ingénieur de Recherche 
NORSYS 
1, rue de la Cense des Raines
ZAC du Moulin
59710 ENNEVELIN
Tel : (33) 3 28 76 56 76
Mob : (33) 6 17 12 19 78
Fax : (33) 3 28 76 57 00
Web : http://www.norsys.fr


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to