geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r687998 - /geronimo/genesis/trunk/pom.xml
Date Fri, 22 Aug 2008 07:27:14 GMT
Author: jdillon
Date: Fri Aug 22 00:27:14 2008
New Revision: 687998

URL: http://svn.apache.org/viewvc?rev=687998&view=rev
Log:
Try to add some validation of required release configuration muck

Modified:
    geronimo/genesis/trunk/pom.xml

Modified: geronimo/genesis/trunk/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/genesis/trunk/pom.xml?rev=687998&r1=687997&r2=687998&view=diff
==============================================================================
--- geronimo/genesis/trunk/pom.xml (original)
+++ geronimo/genesis/trunk/pom.xml Fri Aug 22 00:27:14 2008
@@ -125,6 +125,28 @@
                     </plugin>
                     
                     <plugin>
+                        <groupId>org.codehaus.groovy.maven</groupId>
+                        <artifactId>gmaven-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <phase>validate</phase>
+                                <goals>
+                                    <goal>execute</goal>
+                                </goals>
+                                <configuration>
+                                    <source>
+                                        // Make sure that we have a configured GPG passphrase
+                                        def phrase = project.properties['gpg.passphrase']
+                                        if (phrase == null) {
+                                            fail('Missing required property: gpg.passphrase')
+                                        }
+                                    </source>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                    
+                    <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-gpg-plugin</artifactId>
                         <executions>
@@ -166,6 +188,36 @@
                     </plugin>
                     
                     <plugin>
+                        <groupId>org.codehaus.groovy.maven</groupId>
+                        <artifactId>gmaven-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <phase>validate</phase>
+                                <goals>
+                                    <goal>execute</goal>
+                                </goals>
+                                <configuration>
+                                    <source>
+                                        // Make sure that we have a valid stage deployment
URL configured
+                                        def url = project.properties['stageDeployUrl']
+                                        if (url == null || url.trim() == '') {
+                                            fail('Missing required property: stageDeployUrl')
+                                        }
+                                        
+                                        // Make sure its really a URL too
+                                        try {
+                                            new URL(url)
+                                        }
+                                        catch (Exception e) {
+                                            fail("Invalid URL: $url")
+                                        }
+                                    </source>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                    
+                    <plugin>
                         <groupId>org.apache.maven.plugins</groupId>
                         <artifactId>maven-deploy-plugin</artifactId>
                         <configuration>



Mime
View raw message