Author: wsmoak
Date: Mon Dec 12 20:32:11 2005
New Revision: 356469

URL: http://svn.apache.org/viewcvs?rev=356469&view=rev
Log:
Set up to publish the site with 'maven site:deploy'.
When deploying, exclude the 1.0.2 and 1.1 api docs which will never change.
Make 'site' the default goal.
Use 'groupId' and 'artifactId' rather than 'id' alone.

Modified:
    struts/site/trunk/maven.xml
    struts/site/trunk/project.xml

Modified: struts/site/trunk/maven.xml
URL: 
http://svn.apache.org/viewcvs/struts/site/trunk/maven.xml?rev=356469&r1=356468&r2=356469&view=diff
==============================================================================
--- struts/site/trunk/maven.xml (original)
+++ struts/site/trunk/maven.xml Mon Dec 12 20:32:11 2005
@@ -1,6 +1,6 @@
 <?xml version="1.0"?>
 
-<project    default="build-all"
+<project    default="site"
             xmlns:j="jelly:core"
             xmlns:ant="jelly:ant"
             xmlns:maven="jelly:maven">
@@ -8,5 +8,11 @@
    <postGoal name="multiproject:clean">
       <attainGoal name="clean"/>
    </postGoal>
+
+   <!-- No need to re-deploy the 1.0.2 and 1.1 api docs every time -->
+   <preGoal name="site:sshdeploy">
+      <ant:delete dir="target/docs/struts-doc-1.0.2"/>
+      <ant:delete dir="target/docs/struts-doc-1.1"/>
+   </preGoal>
 
 </project>

Modified: struts/site/trunk/project.xml
URL: 
http://svn.apache.org/viewcvs/struts/site/trunk/project.xml?rev=356469&r1=356468&r2=356469&view=diff
==============================================================================
--- struts/site/trunk/project.xml (original)
+++ struts/site/trunk/project.xml Mon Dec 12 20:32:11 2005
@@ -20,7 +20,8 @@
 
 
   <extend>build/project.xml</extend>
-  <id>struts-site</id>
+  <groupId>struts</groupId>
+  <artifactId>struts-site</artifactId>
   <name>Struts Site</name>
 
     <!-- ################################################################ -->
@@ -31,6 +32,9 @@
     Struts Site is the Apache Struts home page, 
     the top-level portal to all other Struts frameworks and subprojects. 
   </description>
+
+  <siteAddress>people.apache.org</siteAddress>
+  <siteDirectory>/www/struts.apache.org/</siteDirectory>
 
   <repository>
     
<connection>scm|svn|http://svn.apache.org/repos/asf/struts/site/trunk</connection>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to