You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by dk...@apache.org on 2019/06/04 02:03:02 UTC

[sling-org-apache-sling-app-cms] 01/02: Updating RAT to not flag binary files incorrectly

This is an automated email from the ASF dual-hosted git repository.

dklco pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-app-cms.git

commit e0d13dd9adb98bf909c86cb09124ef69943c57b9
Author: Dan Klco <dk...@apache.org>
AuthorDate: Mon Jun 3 22:02:07 2019 -0400

    Updating RAT to not flag binary files incorrectly
---
 core/pom.xml | 24 ++++++++++++++++++++++++
 pom.xml      | 30 ++++++++++++++++++++++++++++++
 2 files changed, 54 insertions(+)

diff --git a/core/pom.xml b/core/pom.xml
index 01ff742..5d45aa9 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -60,6 +60,30 @@
                     <useSystemClassLoader>false</useSystemClassLoader>
                 </configuration>
             </plugin>
+            <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>
+                        <exclude>src/test/resources/*.pp*</exclude>
+                        <exclude>src/test/resources/*.do*</exclude>
+                    </excludes>
+                </configuration>
+                <executions>
+                    <execution>
+                        <phase>verify</phase>
+                        <goals>
+                            <goal>check</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
         </plugins>
     </build>
 
diff --git a/pom.xml b/pom.xml
index 5022bcd..1ed5ebd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -287,6 +287,36 @@
     </dependencyManagement>
 
     <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>
+    <exclude>**/target/*</exclude>
+</excludes>
+</configuration>
+<executions>
+<execution>
+<phase>verify</phase>
+<goals>
+<goal>check</goal>
+</goals>
+</execution>
+</executions>
+</plugin>
+</plugins>
+
+        
         <pluginManagement>
             <plugins>
                 <plugin>