maven-plugins/maven.xml
2005-10-14 14:15:30 +00:00

53 lines
2.6 KiB
XML

<!--
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->
<project xmlns:ant="jelly:ant" xmlns:i="jelly:interaction" xmlns:j="jelly:core" xmlns:maven="jelly:maven">
<goal name="plugins:install-all" description="Install all plugins">
<maven:reactor basedir="${basedir}" includes="*/project.xml" excludes="${maven.multiproject.excludes}" goals="clean,plugin:install" banner="Install" ignoreFailures="false"/>
</goal>
<goal name="plugins:repository-deploy-all" description="Deploy all plugins in a remote repository">
<maven:reactor basedir="${basedir}" includes="*/project.xml" excludes="${maven.multiproject.excludes}" goals="clean,plugin:repository-deploy" banner="Deploy" ignoreFailures="false"/>
</goal>
<goal name="plugins:test-all" description="Test all plugins">
<maven:reactor basedir="${basedir}" includes="*/project.xml" excludes="${maven.multiproject.excludes}" goals="plugin:test" banner="Test" ignoreFailures="false"/>
</goal>
<goal name="plugins:site" description="Create the web site root for all plugins">
<attainGoal name="multiproject:site"/>
</goal>
<goal name="plugins:deploy-all-sites" description="Create and deploy the web site for all plugins">
<!-- We don't want to have the question about to deploy the root site after each plugin -->
<ant:property name="skip.main.site" value="true"/>
<ant:property name="goal" value="site:deploy"/>
<attainGoal name="multiproject:goal"/>
<attainGoal name="multiproject:site"/>
<attainGoal name="site:deploy"/>
</goal>
<goal name="confirm-and-deploy-site">
<j:set var="skipQuestion" value="${skip.main.site}"/>
<j:if test="${!empty(skipQuestion) and skipQuestion==true}">
<i:ask question="Would you like to regenerate and deploy the main plugins site (y/n)?" answer="ok" default="y"/>
<j:if test="${ok == 'y'}">
<attainGoal name="multiproject:site"/>
<attainGoal name="site:sshdeploy"/>
</j:if>
</j:if>
</goal>
<postGoal name="site">
<ant:move file="${maven.docs.dest}/projects-overview.html" tofile="${maven.docs.dest}/index.html"/>
</postGoal>
</project>