You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cz...@apache.org on 2009/06/10 11:28:18 UTC

svn commit: r783270 - /incubator/sling/trunk/parent/pom.xml

Author: cziegeler
Date: Wed Jun 10 09:28:14 2009
New Revision: 783270

URL: http://svn.apache.org/viewvc?rev=783270&view=rev
Log:
SLING-917 : Configure rat as a profile and add ianal plugin for checking for legal files during release.

Modified:
    incubator/sling/trunk/parent/pom.xml

Modified: incubator/sling/trunk/parent/pom.xml
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/parent/pom.xml?rev=783270&r1=783269&r2=783270&view=diff
==============================================================================
--- incubator/sling/trunk/parent/pom.xml (original)
+++ incubator/sling/trunk/parent/pom.xml Wed Jun 10 09:28:14 2009
@@ -263,6 +263,16 @@
                     <artifactId>cargo-maven2-plugin</artifactId>
                     <version>0.3.1</version>
                 </plugin>
+                <plugin>
+                    <groupId>org.codehaus.mojo</groupId>
+                    <artifactId>ianal-maven-plugin</artifactId>
+                    <version>1.0-alpha-1</version>
+                </plugin>
+                <plugin>
+                    <groupId>org.apache.rat</groupId>
+                    <artifactId>apache-rat-plugin</artifactId>
+                    <version>0.6</version>
+                </plugin>
             </plugins>
         </pluginManagement>
     </build>
@@ -320,6 +330,40 @@
                 </plugins>
             </build>
         </profile>
+	    <!--
+	    We should execute this profile manually to make sure that all files in our source code contain proper licenses.
+	    This is very important and should not be skipped in any scenario.  It is very importnt for us to follow ASF policy.
+	    Example:  mvn -P prepare-release install
+	    -->    
+        <profile>
+            <id>rat</id>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.rat</groupId>
+                        <artifactId>apache-rat-plugin</artifactId>
+                        <configuration>
+                            <excludes>
+                                <!--  Used by maven-remote-resources-plugin -->
+                                <exclude>src/main/appended-resources/META-INF/*</exclude>
+                                <!--  Generated by maven-remote-resources-plugin -->
+                                <exclude>velocity.log</exclude>
+                                <!-- don't check anything in target -->
+                                <exclude>target/*</exclude>
+                            </excludes>
+                        </configuration>
+                        <executions>
+                            <execution>
+                                <phase>verify</phase>
+                                <goals>
+                                    <goal>check</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
     </profiles>
 
     <mailingLists>