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
When I invoke "maven -X all" in the master level, SLAVE2 is invoked first
and everything is okay.
So, I have two questions:
1. It appears that goals resides in a global space and affects projects even
if they are unrelated.
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.
Thanks,
Charles
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>