You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2018/03/31 10:20:26 UTC

svn commit: r1828093 - /maven/site/trunk/pom.xml

Author: hboutemy
Date: Sat Mar 31 10:20:26 2018
New Revision: 1828093

URL: http://svn.apache.org/viewvc?rev=1828093&view=rev
Log:
[INFRA-16088] prepare site publication from Jenkins job through "mvn site-deploy"

Modified:
    maven/site/trunk/pom.xml

Modified: maven/site/trunk/pom.xml
URL: http://svn.apache.org/viewvc/maven/site/trunk/pom.xml?rev=1828093&r1=1828092&r2=1828093&view=diff
==============================================================================
--- maven/site/trunk/pom.xml (original)
+++ maven/site/trunk/pom.xml Sat Mar 31 10:20:26 2018
@@ -44,8 +44,15 @@
     <system>jira</system>
     <url>https://issues.apache.org/jira/browse/MNGSITE</url>
   </issueManagement>
+  <distributionManagement>
+    <site>
+      <id>apache.website</id>
+      <url>scm:svn:https://svn.apache.org/repos/infra/websites/production/maven/content/</url>
+    </site>
+  </distributionManagement>
 
   <properties>
+    <maven.site.path>maven-site</maven.site.path>
     <currentStableVersion>3.5.3</currentStableVersion>
     <currentStableReleaseDate>2017-10-24</currentStableReleaseDate>
     <currentStableVersionDetails>138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T08:58:13+01:00</currentStableVersionDetails>
@@ -81,11 +88,13 @@
           <artifactId>maven-pdf-plugin</artifactId>
           <version>1.3</version>
         </plugin>
+        <!-- publish mono-module site with "mvn site-deploy" -->
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-site-plugin</artifactId>
           <configuration>
             <siteDirectory>${project.basedir}/content</siteDirectory>
+            <skipDeploy>true</skipDeploy><!-- don't deploy site with maven-site-plugin -->
           </configuration>
         </plugin>
       </plugins>
@@ -93,6 +102,22 @@
     <plugins>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-scm-publish-plugin</artifactId>
+        <configuration>
+          <content>${project.reporting.outputDirectory}</content><!-- no need for site:stage, use target/site -->
+        </configuration>
+        <executions>
+          <execution>
+            <id>scm-publish</id>
+            <phase>site-deploy</phase><!-- deploy site with maven-scm-publish-plugin -->
+            <goals>
+              <goal>publish-scm</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-enforcer-plugin</artifactId>
         <executions>
           <execution>