Add rat profiles to poms to exclude javaee schema files

git-svn-id: https://svn.apache.org/repos/asf/geronimo/components/geronimo-schema-javaee_6/trunk@938416 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/pom.xml b/pom.xml
index b333957..d6e9361 100644
--- a/pom.xml
+++ b/pom.xml
@@ -127,5 +127,55 @@
         </plugins>
     </build>
 
+    <profiles>
+        <profile>
+            <id>rat</id>
+            <build>
+                <plugins>
+                    <plugin>
+                        <!-- profile for rat verification.  To run, just build with -Prat -->
+                        <groupId>org.apache.rat</groupId>
+                        <artifactId>apache-rat-plugin</artifactId>
+                        <version>0.6</version>
+                        <executions>
+                            <execution>
+                                <phase>verify</phase>
+                                <goals>
+                                    <goal>check</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                        <configuration>
+                            <reportFile>${project.build.directory}/${project.build.finalName}.rat</reportFile>
+                            <excludeSubProjects>false</excludeSubProjects>
+                            <excludes>
+                                <exclude>**/application_6.xsd</exclude>
+                                <exclude>**/application-client_6.xsd</exclude>
+                                <exclude>**/connector_1_6.xsd</exclude>
+                                <exclude>**/ejb-jar_3_1.xsd</exclude>
+                                <exclude>**/javaee_6.xsd</exclude>
+                                <exclude>**/javaee_web_services_1_3.xsd</exclude>
+                                <exclude>**/javaee_web_services_client_1_3.xsd</exclude>
+                                <exclude>**/jsp_2_2.xsd</exclude>
+                                <exclude>**/persistence_2_0.xsd</exclude>
+                                <exclude>**/web-app_3_0.xsd</exclude>
+                                <exclude>**/web-common_3_0.xsd</exclude>
+                                <exclude>**/web-fragment_3_0.xsd</exclude>
+                                <exclude>**/target/**/*</exclude>
+                                <exclude>**/appended-resources/**/*</exclude>
+                                <exclude>**/dependency-reduced-pom.xml</exclude>
+                                <exclude>**/velocity.log</exclude>
+                                <!-- manifest files don't support comments so don't contain the ASL2.0 header -->
+                                <exclude>**/*.MF</exclude>
+                                <!--RAT doesn't seem to recognize MIT style licenses-->
+                                <exclude>manual/src/styles/print.css</exclude>
+                            </excludes>
+                        </configuration>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
+
 </project>