I don't know where the reactor test cases are... Anyway, I just encounter a
problem (or a feature) with reactor. If the master project's goal name is
the same as the child's goal, reactor won't invoke the goal.

So, in my master maven.xml, I have:

<project xmlns:m="jelly:maven">
  <goal name="test">
    <m:reactor basedir="${basedir}"
               includes="*/project.xml"
               goals="test"
               banner="Testing"
               ignoreFailures="false"/>
  </goal>
</project>


In my slave maven.xml, I have:

<project>
  <goal name="test">
    <echo>${pom.getCurrentVersion()}</echo>
  </goal>
</project>

If I run "maven test" in the master level, 

 __  __
|  \/  |__ Jakarta _ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|   v. 1.0-beta-8


[DEBUG] Adding reference: maven.dependency.classpath ->
[DEBUG] Adding reference: maven-classpath ->
Starting the reactor ...
test:
[DEBUG] Adding reference: maven.dependency.classpath ->
[DEBUG] Adding reference: maven-classpath ->
Our processing order:
Test Slave
+----------------------------------------
| Testing Test Slave
+----------------------------------------
Starting the reactor ...
Our processing order:
BUILD SUCCESSFUL
Total time:  2 seconds

Looks like the master's goal overrides the slave's goal....

Charles

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

Reply via email to