EXTSCRIPT-167 adding rat plugin to the build as
separate testing profile
git-svn-id: https://svn.apache.org/repos/asf/myfaces/extensions/scripting/trunk@1369836 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/extscript-core-root/extscript-core/src/main/resources/META-INF/services/org.apache.myfaces.webapp.StartupListener b/extscript-core-root/extscript-core/src/main/resources/META-INF/services/org.apache.myfaces.webapp.StartupListener
index 7fb31a4..877c286 100644
--- a/extscript-core-root/extscript-core/src/main/resources/META-INF/services/org.apache.myfaces.webapp.StartupListener
+++ b/extscript-core-root/extscript-core/src/main/resources/META-INF/services/org.apache.myfaces.webapp.StartupListener
@@ -1 +1,19 @@
+#####################################################################################
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#####################################################################################
org.apache.myfaces.extensions.scripting.jsf.startup.StartupServletContextPluginChainLoader
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 650c529..c4c3df1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -143,6 +143,24 @@
<pluginManagement>
<plugins>
+ <plugin>
+ <groupId>org.apache.rat</groupId>
+ <artifactId>apache-rat-plugin</artifactId>
+ <version>0.8</version>
+ <configuration>
+ <excludes>
+ <exclude>.idea/**/*</exclude>
+ <exclude>readme/**/*</exclude>
+ <exclude>**/licenses/**/*</exclude>
+ <exclude>.git/**/*</exclude>
+ <exclude>**/*.log</exclude>
+ <exclude>**/LICENSE.TXT</exclude>
+ <exclude>**/NOTICE.TXT</exclude>
+ <exclude>.gitignore</exclude>
+ <exclude>atlassian-ide-plugin.xml</exclude>
+ </excludes>
+ </configuration>
+ </plugin>
<plugin>
<groupId>org.scala-tools</groupId>
@@ -187,6 +205,7 @@
<plugins>
+
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
@@ -284,7 +303,25 @@
</plugins>
</build>
</profile>
-
+ <profile>
+ <id>rat</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.rat</groupId>
+ <artifactId>apache-rat-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>validate</phase>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
</profiles>
<distributionManagement>
<site>