Finalizing nightly builds
authorn.hoffmann <n.hoffmann@localhost>
Mon, 15 Aug 2011 15:26:44 +0000 (15:26 +0000)
committern.hoffmann <n.hoffmann@localhost>
Mon, 15 Aug 2011 15:26:44 +0000 (15:26 +0000)
eu.etaxonomy.taxeditor/deploy_nightly.sh
eu.etaxonomy.taxeditor/eu.etaxonomy.taxeditor.product
eu.etaxonomy.taxeditor/pom.xml
pom.xml

index 2cb8ea7c97f541d2cb3f375cd0a3041d0fa90666..8da863d4c96ad70b41191032dfed7d263d85e597 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-# testing
+# local testing
 #WORKSPACE="/Users/n.hoffmann/Documents/workspace/taxeditor/trunk"
 
 PRODUCT_DIR="$WORKSPACE/eu.etaxonomy.taxeditor/target/products"
@@ -10,14 +10,14 @@ DEPLOYMENT_DIR="/var/www/download/taxeditor/nightly"
 
 # bash check if directory exists
 if [ ! -d $PRODUCT_DIR ]; then
-       echo "Target directory does not exist: $PRODUCT_DIR" 
+       echo "Product directory does not exist: $PRODUCT_DIR" 
        exit 1
 fi 
 
-PRODUCTS=$(ls  $PRODUCT_DIR/eu.etaxonomy.taxeditor.product-*.zip)
+PRODUCTS=$(ls $PRODUCT_DIR/eu.etaxonomy.taxeditor.product-*.zip)
 
-if [ ! -e $PRODUCTS ]; then
-       echo "No products in target folder."
+if [ ! $PRODUCTS ]; then
+       echo "No products in product directory: $PRODUCT_DIR"
        exit 1
 fi
 
index acc858c0673d2a8803dabb4b40d9a8f6f26c6bf7..367316b17bea95f810984a6dee619d7f522d516d 100644 (file)
@@ -26,7 +26,7 @@
       startupProgressRect="5,447,366,15"
       startupMessageRect="7,432,360,20"
       startupForegroundColor="000000" />
-   <launcher name="eclipse">
+   <launcher name="TaxonomicEditor">
       <solaris/>
       <win useIco="false">
          <bmp/>
index 6724529f30273f58123da66ca9f45a8b2c65541c..c57c91e8791f3c44a7816a077301c089baafdd96 100644 (file)
                                        </execution>
                                </executions>
                        </plugin>
+                       <plugin>
+                               <groupId>org.codehaus.mojo</groupId>
+                               <artifactId>wagon-maven-plugin</artifactId>
+                           <!--
+                               Problems with the wagon-maven-plugin have been encounterd on Windows,
+                                       it should work properly on linux though.
+                                -->
+                               <executions>
+                                       <execution>
+                                               <phase>deploy</phase>
+                                               <goals>
+                                                       <goal>upload</goal>
+                                               </goals>
+                                       </execution>
+                               </executions>
+                               <configuration>
+                                       <fromDir>target/products</fromDir>
+                                       <includes>*.zip</includes>
+                                       <url>scpexe://wp5.e-taxonomy.eu/var/www/download/taxeditor/${project.version}</url>
+                                       <serverId>wp5.e-taxonomy.eu</serverId>
+                               </configuration>
+                       </plugin>
                </plugins>
        </build>
 
diff --git a/pom.xml b/pom.xml
index 98a0f381fb08b5a13f2e79fcbee0bdc5880ae50c..019486cde571f8bbfd779ef139ab436c6a4ece0f 100644 (file)
--- a/pom.xml
+++ b/pom.xml
                                        </additionalProjectnatures>
                                </configuration>
                        </plugin>
+                       <!-- ====== DEPLOY ====== -->
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
-                               <artifactId>maven-deploy-plugin</artifactId>
-                               <version>2.5</version>
+                               <artifactId>maven-release-plugin</artifactId>
+                               <version>2.2.1</version>
+                               <configuration>
+                                       <allowTimestampedSnapshots>true</allowTimestampedSnapshots>
+                                       <autoVersionSubmodules>false</autoVersionSubmodules>
+                                       <!--preparationGoals>clean verify install</preparationGoals-->
+                                       <!--goals>deploy</goals-->
+                                       <!-- skipping site-deploy by explicitly configuring the goal here -->
+                                       <tagBase>http://dev.e-taxonomy.eu/svn/tags/taxeditor</tagBase>
+                               </configuration>
                        </plugin>
                </plugins>
                <pluginManagement>
                                        <artifactId>maven-jar-plugin</artifactId>
                                        <version>2.3.1</version>
                                </plugin>
+                               <plugin>
+                                       <groupId>org.codehaus.mojo</groupId>
+                                       <artifactId>wagon-maven-plugin</artifactId>
+                                       <version>1.0-beta-3</version>
+                               </plugin>
                                <!--plugin>
                                        <groupId>org.eclipse.tycho</groupId>
                                        <artifactId>tycho-packaging-plugin</artifactId>