Hi, we have modularized our build by using Maven. However, because the build runs into OutOfMemoryExceptions when we compile all modules within one Maven Reactor call, we are using the reactor only to determine the build order and call afterwards each module via the ant:exec call.
<maven:reactor basedir="${basedir}" includes="*/project.xml" ignoreFailures="false" collectOnly="true" postProcessing="true"/> <j:forEach var="reactorProject" items="${reactorProjects}"> <ant:exec executable="cmd" dir="${reactorProject.context.getVariable('basedir')}" failonerror="true"> <arg line="/c maven"/> </ant:exec> </j:forEach> Now we have the problem, that the build goes on even if one module fails. It seems that the failonerror Ant property doesn't work correctly. Does the maven.bat batch file return any error code that is passed on by the cmd shell? Does anybody know, how we can make sure that our build fails if one Maven call fails? Thanks in advance, Jörn