I am not sure if I understad you
you will have (for version 1.0)
<project>
<groupId>ABC</groupId>
<artifactId>ABC</artifactId>
<version>1.0</version>
<dependencies>
<dependency>
<groupId>XXX</groupId>
<artifactId>XXX</artifactId>
<version>1.0</version>
</dependency>
</dependencies>
</project>
and (for version 2.0)
<project>
<groupId>ABC</groupId>
<artifactId>ABC</artifactId>
<version>2.0</version>
<dependencies>
<dependency>
<groupId>XXX</groupId>
<artifactId>XXX</artifactId>
<version>1.5</version>
</dependency>
<dependency>
<groupId>YYY</groupId>
<artifactId>YYY</artifactId>
<version>2.0</version>
</dependency>
</dependencies>
</project>
Michal
> -----Original Message-----
> From: Manuel Darveau [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 18, 2004 10:07 PM
> To: [EMAIL PROTECTED]
> Subject: dependencies
>
>
> Hi!
>
> I probably have missed something somewhere but dont
> dependencies should be by project-version instead of
> only by project?
>
> I mean, is the project ABC-1.0 could have a dependency
> on XXX-1.0 and ABC-2.0 a dependency on XXX-1.5 and
> YYY-2.0.
>
> How does the build system handle this?
>
> Suppose that I tag my version on CVS with VERSION_M_m.
> I can have an old version tagged VERSION_1_0 and newer
> one tagged VERSION_2_0.
> If I ask to build a project with the CVS tag
> VERSION_1_0, does maven checkout the project.xml
> tagged as VERSION_1_0 and resolve dependencies with
> that version (1.0) of the project.xml?
>
> Since version 1.0 and 2.0 does not have the same
> depdendencies, it make a big difference on the build.
>
> I may be completely off the track (I am reading maven
> doc for 2 days) but please bring me back in the good
> direction ;-)
>
> Thank you
>
> Manuel Darveau
>
>
>
>
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! - Internet access at a great low price.
> http://promo.yahoo.com/sbc/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]