In my subprojects I've set the default goal in both project.xml and
maven.xml
project default=war:war
which works fine when I run maven from that directory. So, my first
question is
- where should the default be declared - project.xml or maven.xml?
In your maven.xml
Now the more important problem. I want my parent project to call
all
subprojects' default goals. I tried this by not specifying the
goals
attribute:
goal name=buildMyStuff
m:reactor basedir=${basedir}
includes=**/project.xml
ignoreFailures=false/
but this doesn't call any goals. The reactor works, but the
subprojects don't
do anything. Any ideas?
You'd have something like this in your top level maven.xml file
project default=build-all xmlns:j=jelly:core xmlns:m
=jelly:maven
preGoal name=build-all
!--Stuff you wanna do before reactor launches(if necessary)--
/preGoal
goal name=build-all
m:reactor basedir=${basedir}
includes=*/project.xml
goals=DEFAULT GOAL IN ALL SUBPROJECTS
banner=Building Project
ignoreFailures=false/
/goal
/project
Jeff
Registered Linux user number 366042
[EMAIL PROTECTED]
nanderson.us
To
2004/10/15 [EMAIL PROTECTED]
02:32 PM cc
Subject
Please respond reactor default goals?
to
[EMAIL PROTECTED]
ache.org
Hi,
In my subprojects I've set the default goal in both project.xml and
maven.xml
project default=war:war
which works fine when I run maven from that directory. So, my first
question is
- where should the default be declared - project.xml or maven.xml?
Now the more important problem. I want my parent project to call all
subprojects' default goals. I tried this by not specifying the goals
attribute:
goal name=buildMyStuff
m:reactor basedir=${basedir}
includes=**/project.xml
ignoreFailures=false/
but this doesn't call any goals. The reactor works, but the
subprojects don't
do anything. Any ideas?
Thanks,
Ben Anderson
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This e-mail is intended exclusively for the addressee.
If you are not the addressee you must not read, copy, use or disclose
the e-mail nor the content; please notify us immediately (by clicking Reply) and
delete this e-mail.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]