Wim,

You should use the multiproject plugin for that. Now to do what you want you
need to use the <maven:maven> tag to spawn a maven process.

-Vincent

> -----Original Message-----
> From: Wim Deblauwe [mailto:[EMAIL PROTECTED]
> Sent: mercredi 15 juin 2005 09:07
> To: Maven Users List
> Subject: Building a project and it's SNAPSHOT dependencies
> 
> Hi,
> 
> I'm writing a jelly script for building a project and also building
> it's dependencies in 1 go. I currently do this:
> 
>       <goal name="build:withdeps" description="Builds your module and all
> it's SNAPSHOT dependencies">
>               <ant:echo>Building this module (${pom.id}) with all it's
> SNAPSHOT
> dependencies</ant:echo>
>               <ant:echo message="There are ${size(pom.dependencies)}
> artifacts for
> this project"/>
>               <j:forEach items="${pom.dependencies}" var="dep"
> indexVar="depNumber">
>                       <ant:echo message="Dependency ${depNumber}:
> ${dep.artifact}"/>
>                       <ant:echo>${dep.version}</ant:echo>
>                       <ant:echo>SNAPSHOT present?
> ${dep.version.contains('SNAPSHOT')}</ant:echo>
>                       <j:if test="${dep.version.contains('SNAPSHOT')}">
>                               <!--<attainGoal name="build:withdeps" />-->
>                       </j:if>
>               </j:forEach>
>                 <attainGoal name="jar:install"/>
>       </goal>
> 
> This works to find out what modules need to be build, but then I am
> stuck. I want to start my goal "build:withdeps" in the directory of
> the dependency so that one gets build (and if it also has snapshot
> dependencies, those get build first). Is there a way to do this?
> 
> regards,
> 
> Wim
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



        

        
                
___________________________________________________________________________ 
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
T�l�chargez cette version sur http://fr.messenger.yahoo.com


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

Reply via email to