Yes, that's it, but I dont want to maintain 2
project.xml files. The version 1.0 would be tagged in
CVS as VERSION_1_0 and the second one as VERSION_2_0.

Now, if I have the 2.0 version locally and I want to
build the version 1.0. I think I can use the
scm:perform-release goal to perform this
automatically.

Can you confirm that maven will:
1- Checkout me project with tag VERSION_1_0
2- Read the 1.0 project.xml (just checked out)
3- Compile using 1.0 dependencies (XXX-1.0 only)

Thank you


Manuel

P.S.: I know I could try all this and find answer, but
I'm still trying to get something out of the
scm:perform-release goal (see other post).

--- Maczka Michal <[EMAIL PROTECTED]> wrote:
> 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]
> 



        
                
__________________________________
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]

Reply via email to