You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ian Neruda <ia...@yahoo.com> on 2004/05/28 12:13:54 UTC

Reactor infinite loop

Hi!

I'm trying to create reactor which would build all my
projects but I get infinite loop. This is the end of
maven dump when started in debug mode:

final list of plugins to prepare: []
attaining goal build:start
attaining goal java:compile
Starting the reactor...
Using userBuildPropertiesFile:
E:\unzip\Maven1.0-rc3\build.properties
Using projectPropertiesFile:
E:\unzip\Maven1.0-rc3\projects\Project1\project.properties
Using projectBuildPropertiesFile:
E:\unzip\Maven1.0-rc3\projects\Project1\build.properties
Using userBuildPropertiesFile:
E:\unzip\Maven1.0-rc3\build.properties
.
.
.
I don't have any of .properties files.

Directory structure is following:

-Maven
  -projects
    -maven.xml
    -Project1
    -Project2
     

Maven.xml looks like this:
<goal name="java:compile">
    <maven:reactor
      basedir="${basedir}"
      includes="*/project.xml"
      banner="Building"
      ignoreFailures="false"
    />
</goal>

Am I doing something wrong?

Ian




	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Reactor infinite loop

Posted by Brett Porter <br...@apache.org>.
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: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>
>.
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Reactor infinite loop

Posted by Ian Neruda <ia...@yahoo.com>.
> > 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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Reactor infinite loop

Posted by Rafal Krzewski <Ra...@caltha.pl>.
Ian Neruda wrote:

> -Maven
>   -projects
>     -maven.xml
>     -Project1
>     -Project2
>      
> 
> Maven.xml looks like this:
> <goal name="java:compile">
>     <maven:reactor
>       basedir="${basedir}"
>       includes="*/project.xml"
>       banner="Building"
>       ignoreFailures="false"
>     />
> </goal>
> 
> 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.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org