git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113552 13f79535-47bb-0310-9956-ffa450edef68
46 lines
1.3 KiB
XML
46 lines
1.3 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>
|
|
|
|
</project>
|