> -----Original Message-----
> From: Ciaran Treanor [mailto:[EMAIL PROTECTED]]
> Sent: 15 October 2002 16:31
> To: 'Turbine Maven Users List'
> Subject: RE: Project layout
> 
> Hi Vincent,
> 
> > What I do is use the reactor tag in my maven.xml file and
> > provide a special goal ("dist-all"), as in:
> >
> >   <goal name="dist-all" description="Full build plus prerequisites">
> >     <property name="goal" value="dist"/>
> >     <attainGoal name="action-prerequisites"/>
> >   </goal>
> >
> >   <goal name="action-prerequisites">
> >     <reactor:execute
> >         basedir="${toplevelproject.dir}"
> >         glob="mysubproject/project.xml"
> >         goals="${goal}"
> >         banner="bla blah"
> >         ignoreFailures="false"
> >     />
> >     <attainGoal name="${goal}"/>
> >   </goal>
> 
> Great! So where does this maven.xml file fit into the directory
> structure?
> Do I need one maven.xml per module?

Yes, if you need it. For example, you don't need it for common as it
does not need to build any dependency, right?

The other option (complementary) is to have only a sigle, top level
maven.xml and project.xml in 

Toplevel
  |_ common
  |_ common-struts
  |_ [...]
  |_ maven.xml
  |_ project.xml

which will build the whole thing.

-Vincent


> 
> - common - code used by all backend modules
>     +- build.xml
>     +- common-build.xml
> - common-struts - code used by all struts modules
>     +- build.xml
> - featureX - backend code for featureX
>     +- build.xml
> - featureX-struts - struts code for feature X
>     +- build.xml
> - featureY
>     +- build.xml
> - featureY-struts
>     +- build.xml
> - ...
> 
> Thanks for your help!
> 
> ct
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:turbine-maven-user-
> [EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:turbine-maven-user-
> [EMAIL PROTECTED]>



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

Reply via email to