configure site deployment
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-testing/trunk@1494595 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/deploySite.sh b/deploySite.sh
new file mode 100644
index 0000000..7501d5e
--- /dev/null
+++ b/deploySite.sh
@@ -0,0 +1,23 @@
+#!/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 site:stage $@
+mvn scm-publish:publish-scm $@
diff --git a/pom.xml b/pom.xml
index d8e98c8..55fd880 100644
--- a/pom.xml
+++ b/pom.xml
@@ -132,16 +132,21 @@
<system>jira</system>
<url>http://jira.codehaus.org/browse/MPLUGINTESTING</url>
</issueManagement>
+ <ciManagement>
+ <system>Jenkins</system>
+ <url>https://builds.apache.org/job/maven-plugin-testing/</url>
+ </ciManagement>
<distributionManagement>
<site>
<id>apache.website</id>
- <url>scp://people.apache.org/www/maven.apache.org/plugin-testing/</url>
+ <url>scm:svn:https://svn.apache.org/repos/infra/websites/production/maven/content/${maven.site.path}</url>
</site>
</distributionManagement>
<properties>
<mavenVersion>3.0.5</mavenVersion>
<plexusVersion>1.5.1</plexusVersion>
+ <maven.site.path>plugin-testing-archives/LATEST</maven.site.path>
</properties>
<dependencyManagement>
@@ -225,13 +230,21 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
- </plugin>
+ </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
- <version>3.3</version>
+ <version>3.3</version><!-- TODO remove when upgrading parent to 24 -->
<configuration>
- <stagingSiteURL>scp://people.apache.org/www/maven.apache.org/plugin-testing/${project.artifactId}-${project.version}</stagingSiteURL>
+ <topSiteURL>scm:svn:https://svn.apache.org/repos/infra/websites/production/maven/content/${maven.site.path}</topSiteURL>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-scm-publish-plugin</artifactId>
+ <configuration>
+ <checkoutDirectory>${maven.site.cache}/${maven.site.path}</checkoutDirectory>
+ <tryUpdate>true</tryUpdate>
</configuration>
</plugin>
<plugin>