Skip to content

Commit 5475e45

Browse files
committed
configuration to deploy site to svn
git-svn-id: https://svn.apache.org/repos/asf/tomcat/maven-plugin/trunk@1392309 13f79535-47bb-0310-9956-ffa450edef68
1 parent 080d2c5 commit 5475e45

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

deploySite.sh

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
mvn clean site-deploy scm-publish:publish-scm $@

pom.xml

+20-1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@
7272

7373
<!-- to prevent isssues with last apache parent pom -->
7474
<arguments />
75+
76+
<tomcat-maven.siteFilePath>${user.home}/tomcat-maven-plugin-${project.version}/</tomcat-maven.siteFilePath>
77+
<tomcat-maven.siteUrlDeployment>file://${tomcat-maven.siteFilePath}</tomcat-maven.siteUrlDeployment>
78+
<tomcat-maven.scmPubCheckoutDirectory>${user.home}/tomcat-maven-plugin-${project.version}-content</tomcat-maven.scmPubCheckoutDirectory>
79+
7580
</properties>
7681

7782
<prerequisites>
@@ -686,6 +691,20 @@
686691
</excludes>
687692
</configuration>
688693
</plugin>
694+
695+
<plugin>
696+
<groupId>org.apache.maven.plugins</groupId>
697+
<artifactId>maven-scm-publish-plugin</artifactId>
698+
<version>1.0</version>
699+
<configuration>
700+
<pubScmUrl>scm:svn:https://svn.apache.org/repos/asf/tomcat/site/trunk/docs/maven-plugin-${project.version}</pubScmUrl>
701+
<checkinComment>Apache Tomcat Maven Plugin site documentation for ${project.version}</checkinComment>
702+
<content>${tomcat-maven.siteFilePath}</content>
703+
<checkoutDirectory>${tomcat-maven.scmPubCheckoutDirectory}</checkoutDirectory>
704+
<tryUpdate>true</tryUpdate>
705+
</configuration>
706+
</plugin>
707+
689708
</plugins>
690709
</pluginManagement>
691710
<plugins>
@@ -739,7 +758,7 @@
739758
</snapshotRepository>
740759
<site>
741760
<id>apache.website</id>
742-
<url>${distributionSiteUrl}</url>
761+
<url>${tomcat-maven.siteUrlDeployment}</url>
743762
</site>
744763
</distributionManagement>
745764

0 commit comments

Comments
 (0)