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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to