From: <rob...@us...> - 2010-06-24 01:53:28
|
Revision: 32 http://netcdftools.svn.sourceforge.net/netcdftools/?rev=32&view=rev Author: robertbridle Date: 2010-06-24 01:53:22 +0000 (Thu, 24 Jun 2010) Log Message: ----------- ANDSWRON-659 - Use exec-maven-plugin to perform automatic upload of generated project site to SourceForge. Modified Paths: -------------- trunk/pom.xml Modified: trunk/pom.xml =================================================================== --- trunk/pom.xml 2010-06-24 01:51:23 UTC (rev 31) +++ trunk/pom.xml 2010-06-24 01:53:22 UTC (rev 32) @@ -1,3 +1,49 @@ +<!-- + +This pom.xml has been configured with the following dependencies: + +1.) plink.exe has been installed - you can specify the path to the plink.exe if its not on your system path, e.g. + + mvn deploy site-deploy -Dexec.executable="C:\Program Files\PLink\plink.exe" + mvn release:prepare release:perform -Darguments="-Dexec.executable=C:\\Program Files\\PLink\\plink.exe" + +2.) Our Maven settings.xml contains the credentials for: accessing SCM; running GPG (not currently used); site deployment to SourceForge; and deploying to repositories, e.g. + +<settings> + <servers> + <server> + <id>snapshots</id> + <username>-insert username here-</username> + <password>-insert password here-</password> + </server> + <server> + <id>release-sonatype</id> + <username>-insert username here-</username> + <password>-insert password here-</password> + </server> + <server> + <id>sourceforge.net</id> + <username>-insert username here-</username> + <password>-insert password here-</password> + </server> + </servers> + <profiles> + <profile> + <id>activeProfile</id> + <properties> + <scm.username>-insert username here-</scm.username> + <scm.password>-insert password here-</scm.password> + <gpg.keyname>-insert keyname here-</gpg.keyname> + <gpg.passphrase>-insert passphrase here-</gpg.passphrase> + </properties> + </profile> + </profiles> + <activeProfiles> + <activeProfile>activeProfile</activeProfile> + </activeProfiles> +</settings> + +--> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>net.sourceforge.netcdftools</groupId> @@ -185,8 +231,8 @@ </executions> </plugin> - <!-- WE NO LONGER COPY THESE TO THE GENERATED SITE, WE NOW POINT THE SITE TO THE SOURCEFORGE DOWNLOAD URL --> - <!-- Include the created artifacts in the site --> + <!-- WE NOW PERFORM A MANUAL FILE RELEASE TO SOURECFORGE --> + <!-- Include the created software artifacts in the site --> <!-- <plugin> <groupId>org.apache.maven.plugins</groupId> @@ -249,41 +295,57 @@ </executions> </plugin> - <!-- WE NOW MANUALLY PERFORM A SITE DEPLOY --> <!-- Run script to create SourceForge shell so that site can be uploaded via SCP --> - <!-- <plugin> + <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.1</version> <executions> + <!-- create a shell on SourceForge --> <execution> + <id>create_shell_on_sourceforge</id> <phase>pre-site</phase> <goals> <goal>exec</goal> </goals> + <configuration> + <arguments> + <argument>-ssh</argument> + <argument>-pw</argument> + <argument>${scm.password}</argument> + <argument>-P</argument> + <argument>22</argument> + <argument>${scm.username},net...@sh...</argument> + <argument>create</argument> + </arguments> + </configuration> </execution> + <!-- Change ownership of htdocs directory so that site can be unploaded --> + <execution> + <id>change_htdocs_ownership</id> + <phase>pre-site</phase> + <goals> + <goal>exec</goal> + </goals> + <configuration> + <arguments> + <argument>-ssh</argument> + <argument>-pw</argument> + <argument>${scm.password}</argument> + <argument>-P</argument> + <argument>22</argument> + <argument>${scm.username},net...@sh...</argument> + <argument>chown ${scm.username} /home/groups/n/ne/netcdftools/htdocs</argument> + </arguments> + </configuration> + </execution> </executions> - <configuration> - <executable>plink</executable> - <arguments> - <argument>-ssh</argument> - <argument>-pw</argument> - <argument>${scm.password}</argument> - <argument>-P</argument> - <argument>22</argument> - <argument>${scm.username},net...@sh...</argument> - <argument>create</argument> - </arguments> - </configuration> - </plugin> --> + </plugin> <!-- 2.0-beta-9 used to overcome bug when tagging a release (http://jira.codehaus.org/browse/SCM-406) --> <plugin> <artifactId>maven-release-plugin</artifactId> - <version>2.0-beta-9</version> - <configuration> - <goal>deploy</goal> <!-- Because we have a populated <site> element, the site-deploy goal will execute. We specify that only the deploy goal should execute, since we will perform site-deploys manually --> - </configuration> + <version>2.0-beta-9</version> </plugin> </plugins> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |