geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r689921 - in /geronimo/genesis/trunk: genesis-flava/genesis-default-flava/pom.xml pom.xml
Date Thu, 28 Aug 2008 18:21:21 GMT
Author: jdillon
Date: Thu Aug 28 11:21:20 2008
New Revision: 689921

URL: http://svn.apache.org/viewvc?rev=689921&view=rev
Log:
Move gmaven-plugin version to tlp
Add some crud verification to make sure child projects change required bits

Modified:
    geronimo/genesis/trunk/genesis-flava/genesis-default-flava/pom.xml
    geronimo/genesis/trunk/pom.xml

Modified: geronimo/genesis/trunk/genesis-flava/genesis-default-flava/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/genesis/trunk/genesis-flava/genesis-default-flava/pom.xml?rev=689921&r1=689920&r2=689921&view=diff
==============================================================================
--- geronimo/genesis/trunk/genesis-flava/genesis-default-flava/pom.xml (original)
+++ geronimo/genesis/trunk/genesis-flava/genesis-default-flava/pom.xml Thu Aug 28 11:21:20
2008
@@ -371,11 +371,7 @@
                     <version>2.3.1</version>
                 </plugin>
                 
-                <plugin>
-                    <groupId>org.codehaus.groovy.maven</groupId>
-                    <artifactId>gmaven-plugin</artifactId>
-                    <version>1.0-rc-3</version>
-                </plugin>
+                <!-- gmaven-plugin defined in top-level pom -->
             </plugins>
         </pluginManagement>
         

Modified: geronimo/genesis/trunk/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/genesis/trunk/pom.xml?rev=689921&r1=689920&r2=689921&view=diff
==============================================================================
--- geronimo/genesis/trunk/pom.xml (original)
+++ geronimo/genesis/trunk/pom.xml Thu Aug 28 11:21:20 2008
@@ -103,18 +103,50 @@
                     <artifactId>maven-javadoc-plugin</artifactId>
                     <version>2.5</version>
                 </plugin>
+                <plugin>
+                    <groupId>org.codehaus.groovy.maven</groupId>
+                    <artifactId>gmaven-plugin</artifactId>
+                    <version>1.0-rc-3</version>
+                </plugin>
             </plugins>
         </pluginManagement>
+        
+        <plugins>
+            <plugin>
+                <groupId>org.codehaus.groovy.maven</groupId>
+                <artifactId>gmaven-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>check-coniguration</id>
+                        <phase>validate</phase>
+                        <goals>
+                            <goal>execute</goal>
+                        </goals>
+                        <configuration>
+                            <source>
+                                if (!project.groupId.startsWith('org.apache.geronimo.genesis'))
{
+                                    if (project.scm.connection.startsWith('scm:svn:http://svn.apache.org/repos/asf/geronimo/genesis'))
{
+                                        fail('Genesis child must configure: scm.connection')
+                                    }
+                                    if (project.scm.developerConnection.startsWith('scm:svn:https://svn.apache.org/repos/asf/geronimo/genesis'))
{
+                                        fail('Genesis child must configure: scm.developerConnection')
+                                    }
+                                    if (project.scm.url.startsWith('http://svn.apache.org/viewvc/geronimo/geronimo/genesis'))
{
+                                        fail('Genesis child must configure: scm.url')
+                                    }
+                                }
+                            </source>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
     </build>
     
     <!--
     TODO: Add default distributionManagement muck.
     -->
     
-    <!--
-    TODO: Add some verification that child modules change required bits.
-    -->
-    
     <profiles>
         <profile>
             <id>release</id>



Mime
View raw message