You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ben Anderson <be...@benanderson.us> on 2004/10/15 14:32:58 UTC

reactor default goals?

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


Re: reactor default goals?

Posted by Brett Porter <br...@gmail.com>.
funnily enough, goals="" will work I think.

default goes into maven.xml for now.


On Fri, 15 Oct 2004 05:32:58 -0700, Ben Anderson
<be...@benanderson.us> wrote:
> 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: 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 default goals?

Posted by jm...@za.safmarine.com.






>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




                                                                     
             benanderson@be                                          
             nanderson.us                                            
                                                                  To 
             2004/10/15             users@maven.apache.org           
             02:32 PM                                             cc 
                                                                     
                                                             Subject 
             Please respond         reactor default goals?           
                   to                                                
             users@maven.ap                                          
                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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org





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