You are viewing a plain text version of this content. The canonical link for it is here.
Posted to photark-commits@incubator.apache.org by lr...@apache.org on 2010/02/12 19:33:07 UTC

svn commit: r909578 - /incubator/photark/trunk/pom.xml

Author: lresende
Date: Fri Feb 12 19:33:07 2010
New Revision: 909578

URL: http://svn.apache.org/viewvc?rev=909578&view=rev
Log:
PHOTARK-15 - Adding RAT profile to perform license check on photark source. Currently it needs to be run manualy with mvn -Prat

Modified:
    incubator/photark/trunk/pom.xml

Modified: incubator/photark/trunk/pom.xml
URL: http://svn.apache.org/viewvc/incubator/photark/trunk/pom.xml?rev=909578&r1=909577&r2=909578&view=diff
==============================================================================
--- incubator/photark/trunk/pom.xml (original)
+++ incubator/photark/trunk/pom.xml Fri Feb 12 19:33:07 2010
@@ -81,7 +81,7 @@
     <prerequisites>
         <maven>2.0.8</maven>
     </prerequisites>
-
+    
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
@@ -175,6 +175,64 @@
                 <module>photark-webapp</module>
             </modules>
         </profile>
+        
+        <!-- 
+             profile for verifying licenses, etc
+             usage:
+                mvn rat:check
+        -->
+        <profile>
+            <!--                        
+                Apache License check plugin. Run manually with:
+                    mvn rat:check
+                Or add it to the verify phase with:
+                    mvn verify -Prat
+            -->  
+            <id>rat</id>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.codehaus.mojo</groupId>
+                        <artifactId>rat-maven-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <phase>verify</phase>
+                                <goals>
+                                    <goal>check</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                        <configuration>
+                            <excludes>
+                                <!-- General informational files -->
+                                <exclude>BUILDING</exclude>
+                                <exclude>CHANGES</exclude>
+                                <exclude>README</exclude>
+                                <exclude>RELEASE_NOTES</exclude>
+                                <exclude>**/DISCLAIMER</exclude>
+                                <exclude>**/NOTICE</exclude>
+
+                                <!-- generated content -->
+                                <exclude>**/*.log</exclude>
+                                <exclude>**/rat.txt</exclude>
+                                <exclude>**/target/**/*</exclude>
+                                <exclude>**/WEB-INF/lib/**/*</exclude>                                
+
+                                <!-- Exclude Eclipse generated files -->
+                                <exclude>**/.*/**</exclude>
+
+                                <!--
+                                    Exclude internal repository. These files
+                                    are generated by Maven or only used for
+                                    build purposes.
+                                 -->
+                                <exclude>**/internal-repository/**</exclude>
+                            </excludes>
+                        </configuration>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
 
         <!-- profile for verifying source code correctness -->
         <profile>