svnpubsub configuration

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1438192 13f79535-47bb-0310-9956-ffa450edef68
master
Olivier Lamy 2013-01-24 21:03:46 +00:00
parent 425b95b909
commit 9029098178
2 changed files with 52 additions and 1 deletions

22
deploySite.sh 100644
View File

@ -0,0 +1,22 @@
#!/bin/sh
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
#
mvn clean site-deploy scm-publish:publish-scm $@

31
pom.xml
View File

@ -37,7 +37,7 @@
The Maven Plugin Tools contains the necessary tools to be able to produce Maven Plugins in scripting languages The Maven Plugin Tools contains the necessary tools to be able to produce Maven Plugins in scripting languages
and to generate rebarbative content like descriptor, help and documentation. and to generate rebarbative content like descriptor, help and documentation.
</description> </description>
<url>http://maven.apache.org/plugin-tools/</url> <url>${maven.pluginTools.url}</url>
<inceptionYear>2004</inceptionYear> <inceptionYear>2004</inceptionYear>
<mailingLists> <mailingLists>
@ -166,6 +166,13 @@
<mavenVersion>2.2.1</mavenVersion> <mavenVersion>2.2.1</mavenVersion>
<antVersion>1.7.1</antVersion> <antVersion>1.7.1</antVersion>
<mavenInvokerPluginVersion>1.6</mavenInvokerPluginVersion> <mavenInvokerPluginVersion>1.6</mavenInvokerPluginVersion>
<maven.pluginTools.siteFilePath>${maven.site.cache}/maven-scm-${project.version}</maven.pluginTools.siteFilePath>
<maven.pluginTools.siteUrlDeployment>file://${maven.pluginTools.siteFilePath}</maven.pluginTools.siteUrlDeployment>
<maven.pluginTools.scmPubCheckoutDirectory>${maven.site.cache}/maven-plugin-tools-site-content-${project.version}</maven.pluginTools.scmPubCheckoutDirectory>
<maven.pluginTools.scmPubUrl>https://svn.apache.org/repos/infra/websites/production/maven/content/plugin-tools-archives/plugin-tools-${project.version}</maven.pluginTools.scmPubUrl>
<maven.pluginTools.url>http://maven.apache.org/plugin-tools-archives/plugin-tools-${project.version}</maven.pluginTools.url>
</properties> </properties>
<dependencyManagement> <dependencyManagement>
@ -338,6 +345,17 @@
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>2.5</version> <version>2.5</version>
</plugin> </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-publish-plugin</artifactId>
<configuration>
<checkoutDirectory>${maven.pluginTools.scmPubCheckoutDirectory}</checkoutDirectory>
<pubScmUrl>scm:svn:${maven.pluginTools.scmPubUrl}</pubScmUrl>
<checkinComment>Apache Maven Plugin Tools site deployment</checkinComment>
<content>${maven.pluginTools.siteFilePath}</content>
<tryUpdate>true</tryUpdate>
</configuration>
</plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId> <artifactId>maven-site-plugin</artifactId>
@ -441,5 +459,16 @@
</plugins> </plugins>
</reporting> </reporting>
</profile> </profile>
<profile>
<id>site-release</id>
<properties>
<maven.pluginTools.siteFilePath>${maven.site.cache}/maven-plugin-tools</maven.pluginTools.siteFilePath>
<maven.pluginTools.scmPubCheckoutDirectory>${maven.site.cache}/plugin-tools</maven.pluginTools.scmPubCheckoutDirectory>
<maven.pluginTools.scmPubUrl>https://svn.apache.org/repos/infra/websites/production/maven/content/plugin-tools</maven.pluginTools.scmPubUrl>
<maven.pluginTools.url>http://maven.apache.org/plugin-tools</maven.pluginTools.url>
</properties>
</profile>
</profiles> </profiles>
</project> </project>