myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r1461916 - in /myfaces/core/trunk: parent/pom.xml pom.xml
Date Thu, 28 Mar 2013 01:30:32 GMT
Author: lu4242
Date: Thu Mar 28 01:30:32 2013
New Revision: 1461916

URL: http://svn.apache.org/r1461916
Log:
update site generation to use svnpubsub

Modified:
    myfaces/core/trunk/parent/pom.xml
    myfaces/core/trunk/pom.xml

Modified: myfaces/core/trunk/parent/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/parent/pom.xml?rev=1461916&r1=1461915&r2=1461916&view=diff
==============================================================================
--- myfaces/core/trunk/parent/pom.xml (original)
+++ myfaces/core/trunk/parent/pom.xml Thu Mar 28 01:30:32 2013
@@ -112,6 +112,26 @@
                 </executions>
             </plugin>
             
+            <plugin>
+              <groupId>org.apache.maven.plugins</groupId>
+              <artifactId>maven-scm-publish-plugin</artifactId>
+              <version>1.0-beta-1</version>
+              <configuration>
+                <pubScmUrl>${siteScmPublish.url}</pubScmUrl>
+                <tryUpdate>true</tryUpdate>
+                <checkoutDirectory>${scmCheckout.path}</checkoutDirectory>
+                <content>\${siteContent.path}</content>
+              </configuration>
+            </plugin>
+            <plugin>
+              <groupId>org.apache.maven.plugins</groupId>
+              <artifactId>maven-site-plugin</artifactId>
+              <configuration>
+                <stagingRepositoryId>myfaces-local-staging</stagingRepositoryId>
+                <stagingSiteURL>${siteDeploy.url}</stagingSiteURL>
+              </configuration>
+            </plugin>
+
         </plugins>
 
         <pluginManagement>
@@ -176,7 +196,7 @@
                 </plugin>
                 <plugin>
                   <artifactId>maven-site-plugin</artifactId>
-                  <version>3.0</version>
+                  <version>3.1</version>
                 </plugin>
                 <plugin>
                     <artifactId>maven-jxr-plugin</artifactId>
@@ -575,12 +595,30 @@
 
     </repositories>
     
+    <!--
     <distributionManagement>
         <site>
             <id>apache.website</id>
             <name>Apache Website</name>
             <url>scpexe://people.apache.org/www/myfaces.apache.org/core21/</url>
         </site>
-    </distributionManagement>
+    </distributionManagement>-->
+  <distributionManagement>
+    <site>
+      <id>myfaces-local-staging</id>
+      <name>Apache Website</name>
+      <url>scp://localhost/${user.home}/myfaces-site/${siteModule.path}</url>
+    </site>
+  </distributionManagement>
+  <properties>
+    <siteModule.path>core21</siteModule.path>
+    <site.mainDirectory>${user.home}/myfaces-site/checkout</site.mainDirectory>
+    <siteContent.path>${user.home}/myfaces-site/site/${siteModule.path}</siteContent.path>
+    <!-- it's a default location for performance reason (not checkout the content all
the time)
+         you can override this value in your settings. -->
+    <scmCheckout.path>\${site.mainDirectory}/${siteModule.path}</scmCheckout.path>
+    <siteDeploy.url>file://${user.home}/myfaces-site/site/${siteModule.path}</siteDeploy.url>
+    <siteScmPublish.url>scm:svn:https://svn.apache.org/repos/asf/myfaces/site/publish/</siteScmPublish.url>
+  </properties>
 
 </project>

Modified: myfaces/core/trunk/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/pom.xml?rev=1461916&r1=1461915&r2=1461916&view=diff
==============================================================================
--- myfaces/core/trunk/pom.xml (original)
+++ myfaces/core/trunk/pom.xml Thu Mar 28 01:30:32 2013
@@ -71,6 +71,35 @@
           </extension>
         </extensions>
 
+        <pluginManagement>
+          <plugins>
+            <plugin>
+              <artifactId>maven-site-plugin</artifactId>
+              <version>3.1</version>
+            </plugin>
+          </plugins>
+        </pluginManagement>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-scm-publish-plugin</artifactId>
+            <version>1.0-beta-1</version>
+            <configuration>
+              <pubScmUrl>${siteScmPublish.url}</pubScmUrl>
+              <tryUpdate>true</tryUpdate>
+              <checkoutDirectory>${scmCheckout.path}</checkoutDirectory>
+              <content>\${siteContent.path}</content>
+            </configuration>
+          </plugin>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-site-plugin</artifactId>
+            <configuration>
+              <stagingRepositoryId>myfaces-local-staging</stagingRepositoryId>
+              <stagingSiteURL>${siteDeploy.url}</stagingSiteURL>
+            </configuration>
+          </plugin>
+        </plugins>
     </build>
     
     <profiles>
@@ -149,6 +178,7 @@
 
     </repositories>
     
+    <!-- 
     <distributionManagement>
         <site>
             <id>apache.website</id>
@@ -156,5 +186,27 @@
             <url>scpexe://people.apache.org/www/myfaces.apache.org/core20/module</url>
         </site>
     </distributionManagement>
+    -->
+    <!-- To deploy the site, use site:stage-deploy goal and commit changes manually on
+         https://svn.apache.org/repos/asf/myfaces/site/publish/ 
+         
+         -->
+  <distributionManagement>
+    <site>
+      <id>myfaces-local-staging</id>
+      <name>Apache Website</name>
+      <url>scp://localhost/${user.home}/myfaces-site/${siteModule.path}</url>
+    </site>
+  </distributionManagement>
+  <properties>
+    <siteModule.path>core21/module</siteModule.path>
+    <site.mainDirectory>${user.home}/myfaces-site/checkout</site.mainDirectory>
+    <siteContent.path>${user.home}/myfaces-site/site/${siteModule.path}</siteContent.path>
+    <!-- it's a default location for performance reason (not checkout the content all
the time)
+         you can override this value in your settings. -->
+    <scmCheckout.path>\${site.mainDirectory}/${siteModule.path}</scmCheckout.path>
+    <siteDeploy.url>file://${user.home}/myfaces-site/site/${siteModule.path}</siteDeploy.url>
+    <siteScmPublish.url>scm:svn:https://svn.apache.org/repos/asf/myfaces/site/publish/</siteScmPublish.url>
+  </properties>
 
 </project>



Mime
View raw message