geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xiam...@apache.org
Subject svn commit: r979766 - /geronimo/samples/trunk/pom.xml
Date Tue, 27 Jul 2010 16:29:21 GMT
Author: xiaming
Date: Tue Jul 27 16:29:21 2010
New Revision: 979766

URL: http://svn.apache.org/viewvc?rev=979766&view=rev
Log:
GERONIMO-5475 move rat:check to a profile to avoid unapproved licenses error

Modified:
    geronimo/samples/trunk/pom.xml

Modified: geronimo/samples/trunk/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/trunk/pom.xml?rev=979766&r1=979765&r2=979766&view=diff
==============================================================================
--- geronimo/samples/trunk/pom.xml (original)
+++ geronimo/samples/trunk/pom.xml Tue Jul 27 16:29:21 2010
@@ -308,26 +308,7 @@
                     </execution>
                 </executions>
             </plugin>
-            <plugin>
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>rat-maven-plugin</artifactId>
-                <version>1.0-alpha-3</version>
-                <configuration>
-                    <excludes>
-                        <exclude>src/main/history/dependencies.xml</exclude>
-                        <exclude>release.properties</exclude>
-                        <exclude>pom.xml.releaseBackup</exclude>
-                    </excludes>
-                </configuration>
-                <executions>
-                    <execution>
-                        <phase>verify</phase>
-                        <goals>
-                            <goal>check</goal>
-                        </goals>
-                    </execution>
-                </executions>
-            </plugin>
+            
             <plugin>
                 <artifactId>maven-clean-plugin</artifactId>
                 <version>2.4.1</version>
@@ -350,6 +331,37 @@
         </plugins>
     </build>
 
+    <profiles>
+        <profile>
+            <id>rat-check</id>
+            <build>
+                <plugins>            
+                    <plugin>
+                        <groupId>org.codehaus.mojo</groupId>
+                        <artifactId>rat-maven-plugin</artifactId>
+                        <version>1.0-alpha-3</version>
+                        <configuration>
+                            <excludes>
+                                <exclude>src/main/history/dependencies.xml</exclude>
+                                <exclude>release.properties</exclude>
+                                <exclude>pom.xml.releaseBackup</exclude>
+                                <exclude>target/**/*</exclude>
+                            </excludes>
+                        </configuration>
+                        <executions>
+                            <execution>
+                                <phase>validate</phase>
+                                <goals>
+                                    <goal>check</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>          
+        </profile>
+    </profiles>
+
     <reporting>
         <plugins>
             <plugin>



Mime
View raw message