Add RAT profile
authorJean-Baptiste Onofré <jbonofre@apache.org>
Tue, 28 Aug 2018 15:24:49 +0000 (17:24 +0200)
committerJean-Baptiste Onofré <jbonofre@apache.org>
Tue, 28 Aug 2018 15:24:49 +0000 (17:24 +0200)
pom.xml
server/storage/src/test/resources/log4j.xml

diff --git a/pom.xml b/pom.xml
index 68cd199..3ac7b0d 100644 (file)
--- a/pom.xml
+++ b/pom.xml
                 </plugins>
             </build>
         </profile>
+        <profile>
+            <id>rat</id>
+            <activation>
+                <activeByDefault>true</activeByDefault>
+            </activation>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.rat</groupId>
+                        <artifactId>apache-rat-plugin</artifactId>
+                        <version>0.12</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>**/target/**/*</exclude>
+                                <exclude>**/*.iml</exclude>
+                            </excludes>
+                        </configuration>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
     </profiles>
 
 </project>
index d604198..d8f748c 100644 (file)
@@ -2,6 +2,24 @@
 <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
 <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
 
+    <!--
+
+        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.
+    -->
+
     <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
         <param name="threshold" value="DEBUG"/>
         <layout class="org.apache.log4j.PatternLayout">