Author: hboutemy
Date: Thu Apr 12 21:17:59 2018
New Revision: 1829010

URL: http://svn.apache.org/viewvc?rev=1829010&view=rev
Log:
prepare publication from Jenkins

Modified:
    maven/doxia/site/trunk/pom.xml

Modified: maven/doxia/site/trunk/pom.xml
URL: 
http://svn.apache.org/viewvc/maven/doxia/site/trunk/pom.xml?rev=1829010&r1=1829009&r2=1829010&view=diff
==============================================================================
--- maven/doxia/site/trunk/pom.xml (original)
+++ maven/doxia/site/trunk/pom.xml Thu Apr 12 21:17:59 2018
@@ -23,7 +23,7 @@ under the License.
   <parent>
     <groupId>org.apache.maven</groupId>
     <artifactId>maven-parent</artifactId>
-    <version>30</version>
+    <version>32-SNAPSHOT</version>
     <relativePath>../../pom/maven/pom.xml</relativePath>
   </parent>
 
@@ -34,7 +34,7 @@ under the License.
 
   <name>Doxia Site</name>
   <description>Site of the Maven Doxia Framework</description>
-  <url>http://maven.apache.org/doxia/</url>
+  <url>https://maven.apache.org/doxia/</url>
   <inceptionYear>2005</inceptionYear>
 
   <mailingLists>
@@ -153,6 +153,13 @@ under the License.
     <url>https://builds.apache.org/job/maven-doxia-trunks/</url>
   </ciManagement>
 
+  <distributionManagement>
+    <site>
+      <id>apache.website</id>
+      <url>${siteDistributionUrl}</url>
+    </site>
+  </distributionManagement>
+
   <pluginRepositories>
     <pluginRepository>
       <id>apache.snapshots</id>
@@ -162,6 +169,8 @@ under the License.
   </pluginRepositories>
 
   <properties>
+    
<siteDistributionUrl>scm:svn:https://svn.apache.org/repos/infra/websites/production/maven-doxia/content/</siteDistributionUrl>
+    <maven.site.path>doxia-site</maven.site.path>
     <doxiaVersion>1.8</doxiaVersion>
     <site.output>${project.build.directory}/site</site.output>
   </properties>
@@ -176,20 +185,37 @@ under the License.
         </plugin>
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
-          <artifactId>maven-site-plugin</artifactId>
-          <configuration>
-            <siteDirectory>${basedir}/content</siteDirectory>
-          </configuration>
+          <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-pdf-plugin</artifactId>
-          <version>1.3</version>
+          <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>
     </pluginManagement>
-
     <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>
 <!-- START SNIPPET: configuration -->
       <plugin>
         <groupId>org.apache.maven.doxia</groupId>
@@ -340,6 +366,32 @@ under the License.
         </plugins>
       </reporting>
     </profile>
+    <profile>
+      <id>java8-ant-ln</id>
+      <build>
+        <pluginManagement>
+          <plugins>
+            <plugin>
+              <groupId>org.apache.maven.plugins</groupId>
+              <artifactId>maven-antrun-plugin</artifactId>
+              <dependencies>
+                <dependency>
+                  <groupId>org.apache.ant</groupId>
+                  <artifactId>ant</artifactId>
+                  <version>1.10.3</version><!-- to get symbolic links from 
Java 7 API instead of "ln" -->
+                </dependency>
+              </dependencies>
+            </plugin>
+          </plugins>
+        </pluginManagement>
+      </build>
+    </profile>
+    <profile>
+      <id>ASF-jenkins</id>
+      <properties><!-- INFRA-16088 Jenkins credentials put outside CMS svn 
space but on new ASF svn repo space -->
+        
<siteDistributionUrl>scm:svn:https://svn.apache.org/repos/asf/maven/doxia/website/content/</siteDistributionUrl>
+      </properties>
+    </profile>
   </profiles>
 
 </project>


Reply via email to