I have done what suggested by Brett and it works fine:

    <!-- Clean through all sub-projects -->
    <goal name="MY-PROJECT:clean">
        <maven:reactor basedir="${basedir}"
                       includes="**/${pattern}/**/project.xml"
                       excludes="**/target/**/project.xml"
                       goals="clean"
                       banner="Cleaning"
                       ignoreFailures="false"/>
    </goal>

I had to specify:

excludes="**/target/**/project.xml"

to avoid the inclusion of the copied project.xml file into the target directory.

Bye

-----Messaggio originale-----
Da: Brett Porter [mailto:[EMAIL PROTECTED] 
Inviato: venerd� 28 maggio 2004 13.08
A: Maven Users List
Oggetto: Re: Reactor infinite loop

Ian,

What you are doing here is overriding java:compile with this reactor 
definition, so the previous java:compile no longer exists.
I'm guessing the default goal is something like "jar" which runs 
java:compile, which runs this reactor, which runs the default goal which 
runs java:compile.... you get the picture :)

You need to call your goal name something else, and possibly specify the 
goal you want to run.

If all you want is to build multiple projects, you might consider the 
"multiproject" plugin.

Cheers,
Brett

Ian Neruda wrote:

>>>Am I doing something wrong?
>>>      
>>>
>>Yup. The reactor includes itsef in the build, which
>>casuses infiniter 
>>recursion. Try adding the following attribute.
>>
>>excludes="project.xml"
>>
>>hope this helps
>>R.
>>    
>>
>
>I don't have project.xml in folder projects, so I
>don't have anything to exclude. 
>Anyway I put excludes in reactor and it didn't work:
>
><goal name="java:compile">
>     <maven:reactor
>      basedir="${basedir}"
>      includes="*/project.xml"
>      excludes="project.xml"
>      banner="Building"
>      ignoreFailures="false"
>     />
></goal>
>
>This is structure:
>-Maven
>   -projects
>     -maven.xml
>     -Project1
>        - project.xml
>     -Project2
>        - project.xml
>
>Ian
>
>
>
>       
>               
>__________________________________
>Do you Yahoo!?
>Friends.  Fun.  Try the all-new Yahoo! Messenger.
>http://messenger.yahoo.com/ 
>
>---------------------------------------------------------------------
>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]




This message is for the designated recipient only and may contain privileged or 
confidential information. If you have received it in error, please notify the sender 
immediately and delete the original. Any other use of the email by you is prohibited.


����������������������������������������������������������������������������
Su www.tim.it - 119 Self Service -, puoi parlare con un operatore o farti aiutare a 
navigare nel mondo TIM.
����������������������������������������������������������������������������


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

Reply via email to