You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Eugene Kirin <ki...@mosinfo.ru> on 2004/07/15 18:08:34 UTC
How does work maven:reactor?
Please explain algorithm of work of maven:reactor. I have got 3 projects and I want that reactor runs their goals one after another. The structure is:
---------------------------
project1 (dir)
project2 (dir)
project3 (dir)
maven.xml
project.xml
---------------------------
I put in maven.xml the next:
<goal name="myGoal">
<maven:reactor basedir="${basedir}"
includes="*/project.xml"
goals="release"
banner="Building"
ignoreFailures="false"/>
</goal>
All projects have got "release" goal, but only project1 is started up. How makes "maven:reactor" execute project1 and project2?
note project.xml for all project is empty.
Sincerely, Eugene Kirin
East View Information Services - Moscow
Research and Development Department
URL: http://www.eastview.com
Re: How does work maven:reactor?
Posted by Philippe Monnet <pf...@ameritech.net>.
Eugene,
You do not need to specify your projects dependencies inside maven.xml.
Instead follow this approach:
1.Create a master project e.g. myproject
2.Create a project.xml for myproject
3.Add project1, project2, and project3 as subdirectories of myproject
4.Modify the project.xml of project1, project2 and project3 as such:
<project>
<extend>${basedir}/../project.xml</extend>
5.Open a command window and run:
maven multiproject:artifact
This will start the reactor and build all artifacts for all projects
inheriting from myproject.
See also:
http://wiki.codehaus.org/maven/CreatingJ2eeApplications?action=highlight&value=multiproject
Hope this helps.
-pfm
Eugene Kirin wrote:
>Please explain algorithm of work of maven:reactor. I have got 3 projects and I want that reactor runs their goals one after another. The structure is:
>---------------------------
>project1 (dir)
>project2 (dir)
>project3 (dir)
>
>maven.xml
>project.xml
>
>---------------------------
>
>I put in maven.xml the next:
>
><goal name="myGoal">
> <maven:reactor basedir="${basedir}"
> includes="*/project.xml"
> goals="release"
> banner="Building"
> ignoreFailures="false"/>
> </goal>
>
>All projects have got "release" goal, but only project1 is started up. How makes "maven:reactor" execute project1 and project2?
>
>note project.xml for all project is empty.
>
>
>
>
>Sincerely, Eugene Kirin
>East View Information Services - Moscow
>Research and Development Department
>
>URL: http://www.eastview.com
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org