On Tue, 2003-01-14 at 12:03, Chan, Charles wrote:
> One more problem with reactor... I have a master project with two projects.
> here are their maven.xml file:
> 
> MASTER maven.xml:
> 
> <project xmlns:m="jelly:maven">
>   <goal name="all">
>     <m:reactor basedir="${basedir}"
>                includes="*/project.xml"
>                goals="jar:install"
>                banner="Testing"
>                ignoreFailures="false"/>
>   </goal>
> </project>
> 
> SLAVE1 maven.xml:
> 
> <project>
>   <goal name="jar:install">
>     <echo>SUB TEST 1</echo>
>   </goal>
> </project>
> 
> SLAVE2 does NOT have maven.xml.
> 
> There is NO dependency between SLAVE1 and SLAVE2. 
> 
> When I invoke "maven all" in the master level, I get the following error:
> 
> Starting the reactor ...
> Our processing order:
> Test Slave
> Test Slave2
> +----------------------------------------
> | Testing Test Slave
> +----------------------------------------
> all:
> jar:install:
>     [echo] SUB TEST 1
> +----------------------------------------
> | Testing Test Slave2
> +----------------------------------------
> 
> BUILD FAILED
> Unknown goal "jar:install"
> Total time:  2 seconds

Well, you're asking for that goal to be run. I can probably add a check
to make sure the goal exists but if you list those goals in the reactor
tag I think it's reasonable to expect them to exist. This behaviour
I expect.

> 
> When I invoke "maven -X all" in the master level, SLAVE2 is invoked first
> and everything is okay.

Right it's grabbing the goal from the plugin.

> So, I have two questions:
> 
> 1. It appears that goals resides in a global space and affects projects even
> if they are unrelated.

The goals are stored by each project but obviously there is something
odd going on. I will reproduce this behaviour here and fix it.

> 2. Using -X changes processing order. In this case, it's not harmful because
> SLAVE1 and SLAVE2 are unrelated. But I just don't know why -X has this
> effect.

-X does not change the processing order. In a set of unrelated projects
the order can vary from run to run. If there are no interdependencies
the order doesn't matter. The graph calc varies each run.

Thanks for the feedback!

> Thanks,
> Charles
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
-- 
jvz.

Jason van Zyl
[EMAIL PROTECTED]
http://tambora.zenplex.org

In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.
  
  -- Jacques Ellul, The Technological Society


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

Reply via email to