150 lines
5.1 KiB
XML

<?xml version="1.0"?>
<project
xmlns:j="jelly:core"
xmlns:maven="jelly:maven"
xmlns:ant="jelly:ant">
<goal name="multiproject"
description="Run the site goal of all subprojects"
prereqs="multiproject:site">
</goal>
<goal name="multiproject:site"
description="Run the site goal of all subprojects">
<maven:reactor
basedir="${maven.multiproject.basedir}"
includes="${maven.multiproject.includes}"
excludes="${maven.multiproject.excludes}"
postProcessing="false"
goals="clean,site"
ignoreFailures="${maven.multiproject.ignoreFailures}"
/>
</goal>
<goal name="multiproject:goal" description="Run a given goal on all projects">
<!-- FIXME: This should be a tag somewhere else as it's common to do tag param checking -->
<j:if test="${empty(goal)}">
<ant:fail>A goal to run must be specified, e.g.
maven -Dgoal=clean multiproject:goal
</ant:fail>
</j:if>
<ant:echo>Executing ${goal} on all projects</ant:echo>
<maven:reactor
basedir="${maven.multiproject.basedir}"
includes="${maven.multiproject.includes}"
excludes="${maven.multiproject.excludes}"
postProcessing="false"
goals="${goal}"
ignoreFailures="${maven.multiproject.ignoreFailures}"
/>
</goal>
<!--==================================================================-->
<!-- Builds all artifacts for all subproject -->
<!--==================================================================-->
<goal name="multiproject:artifact"
description=" Builds all artifacts for all subproject">
<maven:reactor
basedir="${maven.multiproject.basedir}"
includes="${maven.multiproject.includes}"
excludes="${maven.multiproject.excludes}"
postProcessing="false"
goals="multiproject:artifact-callback"
ignoreFailures="${maven.multiproject.ignoreFailures}"
/>
</goal>
<goal name="multiproject:artifact-callback">
<attainGoal name="${maven.multiproject.type}:${maven.multiproject.type}"/>
</goal>
<!--==================================================================-->
<!-- Run 'artifact':install for all subprojects -->
<!--==================================================================-->
<goal name="multiproject:install"
description="Run 'artifact':install for all subprojects">
<maven:reactor
basedir="${maven.multiproject.basedir}"
includes="${maven.multiproject.includes}"
excludes="${maven.multiproject.excludes}"
postProcessing="false"
goals="multiproject:install-callback"
ignoreFailures="${maven.multiproject.ignoreFailures}"
/>
</goal>
<goal name="multiproject:install-callback">
<attainGoal name="${maven.multiproject.type}:install"/>
</goal>
<!--==================================================================-->
<!-- Run 'artifact':install-snapshot for all subprojects -->
<!--==================================================================-->
<goal name="multiproject:install-snapshot"
description="Run the site goal of all subprojects">
<maven:reactor
basedir="${maven.multiproject.basedir}"
includes="${maven.multiproject.includes}"
excludes="${maven.multiproject.excludes}"
postProcessing="false"
goals="multiproject:install-snapshot-callback"
ignoreFailures="${maven.multiproject.ignoreFailures}"
/>
</goal>
<goal name="multiproject:install-snapshot-callback">
<attainGoal name="${maven.multiproject.type}:install-snapshot"/>
</goal>
<!--==================================================================-->
<!-- Run 'artifact':deploy for all subprojects -->
<!--==================================================================-->
<goal name="multiproject:deploy"
description="Run 'artifact':deploy for all subprojects">
<maven:reactor
basedir="${maven.multiproject.basedir}"
includes="${maven.multiproject.includes}"
excludes="${maven.multiproject.excludes}"
postProcessing="false"
goals="multiproject:deploy-callback"
ignoreFailures="${maven.multiproject.ignoreFailures}"
/>
</goal>
<goal name="multiproject:deploy-callback">
<attainGoal name="${maven.multiproject.type}:deploy"/>
</goal>
<!--==================================================================-->
<!-- Run 'artifact':deploy-snapshot for all subprojects -->
<!--==================================================================-->
<goal name="multiproject:deploy-snapshot"
description="Run 'artifact':deploy-snapshot for all subprojects">
<maven:reactor
basedir="${maven.multiproject.basedir}"
includes="${maven.multiproject.includes}"
excludes="${maven.multiproject.excludes}"
postProcessing="false"
goals="multiproject:deploy-snapshot-callback"
ignoreFailures="${maven.multiproject.ignoreFailures}"
/>
</goal>
<goal name="multiproject:deploy-snapshot-callback">
<attainGoal name="${maven.multiproject.type}:deploy-snapshot"/>
</goal>
</project>