Author: dennisl
Date: Sat Sep  6 19:58:54 2014
New Revision: 1622920

URL: http://svn.apache.org/r1622920
Log:
[RAT-170] RAT should use itself during build and site generation
- Add a Rat report to the generated site. Had to move the configuration for Rat 
plugin to pluginManagement so that it can be shared under both build and 
reporting.

Modified:
    creadur/rat/trunk/apache-rat-core/pom.xml
    creadur/rat/trunk/apache-rat-plugin/pom.xml
    creadur/rat/trunk/apache-rat-tasks/pom.xml
    creadur/rat/trunk/apache-rat/pom.xml
    creadur/rat/trunk/pom.xml

Modified: creadur/rat/trunk/apache-rat-core/pom.xml
URL: 
http://svn.apache.org/viewvc/creadur/rat/trunk/apache-rat-core/pom.xml?rev=1622920&r1=1622919&r2=1622920&view=diff
==============================================================================
--- creadur/rat/trunk/apache-rat-core/pom.xml (original)
+++ creadur/rat/trunk/apache-rat-core/pom.xml Sat Sep  6 19:58:54 2014
@@ -47,32 +47,27 @@
       </resource>
     </resources>
 
-    <plugins>
-      <plugin>
-        <groupId>org.apache.rat</groupId>
-        <artifactId>apache-rat-plugin</artifactId>
-        <configuration>
-          <excludes>
-            <!-- These files have bad license headers because they are used to 
test bad license headers -->
-            <exclude>src/test/resources/appliedAL20/bad/*.*</exclude>
-            <exclude>src/test/resources/oasis/bad/*.*</exclude>
-            <!-- These files does not have license headers because they are 
used to test license headers -->
-            <exclude>src/test/resources/elements/Source.java</exclude>
-            <exclude>src/test/resources/elements/ILoggerFactory.java</exclude>
-            <exclude>src/test/resources/elements/sub/Empty.txt</exclude>
-            <exclude>src/test/resources/violations/bad.txt</exclude>
-            <exclude>src/test/resources/violations/FilterTest.cs</exclude>
-          </excludes>
-        </configuration>
-        <executions>
-          <execution>
-            <goals>
-              <goal>check</goal>
-            </goals>
-          </execution>
-        </executions>
-      </plugin>
-    </plugins>
+    <pluginManagement>
+      <plugins>
+        <plugin>
+          <groupId>org.apache.rat</groupId>
+          <artifactId>apache-rat-plugin</artifactId>
+          <configuration>
+            <excludes>
+              <!-- These files have bad license headers because they are used 
to test bad license headers -->
+              <exclude>src/test/resources/appliedAL20/bad/*.*</exclude>
+              <exclude>src/test/resources/oasis/bad/*.*</exclude>
+              <!-- These files does not have license headers because they are 
used to test license headers -->
+              <exclude>src/test/resources/elements/Source.java</exclude>
+              
<exclude>src/test/resources/elements/ILoggerFactory.java</exclude>
+              <exclude>src/test/resources/elements/sub/Empty.txt</exclude>
+              <exclude>src/test/resources/violations/bad.txt</exclude>
+              <exclude>src/test/resources/violations/FilterTest.cs</exclude>
+            </excludes>
+          </configuration>
+        </plugin>
+      </plugins>
+    </pluginManagement>
   </build>
 
 

Modified: creadur/rat/trunk/apache-rat-plugin/pom.xml
URL: 
http://svn.apache.org/viewvc/creadur/rat/trunk/apache-rat-plugin/pom.xml?rev=1622920&r1=1622919&r2=1622920&view=diff
==============================================================================
--- creadur/rat/trunk/apache-rat-plugin/pom.xml (original)
+++ creadur/rat/trunk/apache-rat-plugin/pom.xml Sat Sep  6 19:58:54 2014
@@ -61,6 +61,18 @@
           <artifactId>maven-plugin-plugin</artifactId>
           <version>${mavenPluginPluginVersion}</version>
         </plugin>
+        <plugin>
+          <groupId>org.apache.rat</groupId>
+          <artifactId>apache-rat-plugin</artifactId>
+          <configuration>
+            <excludes>
+              <!-- These files does not have license headers because they are 
used to test license headers -->
+              <exclude>src/it/it1/src.apt</exclude>
+              <exclude>src/test/resources/unit/it2/src.txt</exclude>
+              <exclude>src/test/resources/unit/it3/src.apt</exclude>
+            </excludes>
+          </configuration>
+        </plugin>
       </plugins>
     </pluginManagement>
     <plugins>
@@ -110,25 +122,6 @@
           </execution>
         </executions>
       </plugin>
-      <plugin>
-        <groupId>org.apache.rat</groupId>
-        <artifactId>apache-rat-plugin</artifactId>
-        <configuration>
-          <excludes>
-            <!-- These files does not have license headers because they are 
used to test license headers -->
-            <exclude>src/it/it1/src.apt</exclude>
-            <exclude>src/test/resources/unit/it2/src.txt</exclude>
-            <exclude>src/test/resources/unit/it3/src.apt</exclude>
-          </excludes>
-        </configuration>
-        <executions>
-          <execution>
-            <goals>
-              <goal>check</goal>
-            </goals>
-          </execution>
-        </executions>
-      </plugin>
     </plugins>
   </build>
 

Modified: creadur/rat/trunk/apache-rat-tasks/pom.xml
URL: 
http://svn.apache.org/viewvc/creadur/rat/trunk/apache-rat-tasks/pom.xml?rev=1622920&r1=1622919&r2=1622920&view=diff
==============================================================================
--- creadur/rat/trunk/apache-rat-tasks/pom.xml (original)
+++ creadur/rat/trunk/apache-rat-tasks/pom.xml Sat Sep  6 19:58:54 2014
@@ -119,28 +119,21 @@
           </execution>
         </executions>
       </plugin>
-      <plugin>
-        <groupId>org.apache.rat</groupId>
-        <artifactId>apache-rat-plugin</artifactId>
-        <configuration>
-          <excludes>
-            <!-- This file does not have license header because it is used to 
test license headers -->
-            <exclude>src/test/resources/antunit/index.apt</exclude>
-          </excludes>
-        </configuration>
-        <executions>
-          <execution>
-            <goals>
-              <goal>check</goal>
-            </goals>
-          </execution>
-        </executions>
-      </plugin>
     </plugins>
     
     <pluginManagement>
       <plugins>
         <plugin>
+          <groupId>org.apache.rat</groupId>
+          <artifactId>apache-rat-plugin</artifactId>
+          <configuration>
+            <excludes>
+              <!-- This file does not have license header because it is used 
to test license headers -->
+              <exclude>src/test/resources/antunit/index.apt</exclude>
+            </excludes>
+          </configuration>
+        </plugin>
+        <plugin>
           <groupId>org.eclipse.m2e</groupId>
           <artifactId>lifecycle-mapping</artifactId>
           <version>1.0.0</version>

Modified: creadur/rat/trunk/apache-rat/pom.xml
URL: 
http://svn.apache.org/viewvc/creadur/rat/trunk/apache-rat/pom.xml?rev=1622920&r1=1622919&r2=1622920&view=diff
==============================================================================
--- creadur/rat/trunk/apache-rat/pom.xml (original)
+++ creadur/rat/trunk/apache-rat/pom.xml Sat Sep  6 19:58:54 2014
@@ -106,25 +106,6 @@
         </configuration>
       </plugin>
       <plugin>
-        <groupId>org.apache.rat</groupId>
-        <artifactId>apache-rat-plugin</artifactId>
-        <configuration>
-          <excludes>
-            <!-- These files only describe how to use the project and they
-                 have no license headers -->
-            <exclude>README-ANT.txt</exclude>
-            <exclude>README-CLI.txt</exclude>
-          </excludes>
-        </configuration>
-        <executions>
-          <execution>
-            <goals>
-              <goal>check</goal>
-            </goals>
-          </execution>
-        </executions>
-      </plugin>
-      <plugin>
         <groupId>org.codehaus.mojo</groupId>
         <artifactId>animal-sniffer-maven-plugin</artifactId>
         <executions>
@@ -142,6 +123,18 @@
     <pluginManagement>
       <plugins>
         <plugin>
+          <groupId>org.apache.rat</groupId>
+          <artifactId>apache-rat-plugin</artifactId>
+          <configuration>
+            <excludes>
+              <!-- These files only describe how to use the project and they
+                   have no license headers -->
+              <exclude>README-ANT.txt</exclude>
+              <exclude>README-CLI.txt</exclude>
+            </excludes>
+          </configuration>
+        </plugin>
+        <plugin>
           <groupId>org.eclipse.m2e</groupId>
           <artifactId>lifecycle-mapping</artifactId>
           <version>1.0.0</version>

Modified: creadur/rat/trunk/pom.xml
URL: 
http://svn.apache.org/viewvc/creadur/rat/trunk/pom.xml?rev=1622920&r1=1622919&r2=1622920&view=diff
==============================================================================
--- creadur/rat/trunk/pom.xml (original)
+++ creadur/rat/trunk/pom.xml Sat Sep  6 19:58:54 2014
@@ -52,6 +52,7 @@ agnostic home for software distribution 
     <maven.compiler.target>${javaVersion}</maven.compiler.target>
     <!-- This is the version of Maven required to use the Rat Maven Plugin -->
     <mavenVersion>2.2.1</mavenVersion>
+    <previousRatVersion>0.11</previousRatVersion>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
     <!--
@@ -230,6 +231,12 @@ agnostic home for software distribution 
           </reportSet>
         </reportSets>
       </plugin>
+      <plugin>
+        <groupId>org.apache.rat</groupId>
+        <artifactId>apache-rat-plugin</artifactId>
+        <!-- Must use previous version, to avoid a cyclic reference -->
+        <version>${previousRatVersion}</version>
+      </plugin>
     </plugins>
   </reporting>
   <build>
@@ -296,7 +303,13 @@ agnostic home for software distribution 
           <groupId>org.apache.rat</groupId>
           <artifactId>apache-rat-plugin</artifactId>
           <!-- Must use previous version, to avoid a cyclic reference -->
-          <version>0.11</version>
+          <version>${previousRatVersion}</version>
+          <configuration>
+            <excludes>
+              <!-- This file only describes how to build the project and it 
has no license header -->
+              <exclude>BUILD.txt</exclude>
+            </excludes>
+          </configuration>
         </plugin>
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
@@ -368,16 +381,8 @@ agnostic home for software distribution 
         </dependencies>
       </plugin>
       <plugin>
-        <!-- We don't want this to propagate to the modules, because they all 
have their own excludes -->
-        <inherited>false</inherited>
         <groupId>org.apache.rat</groupId>
         <artifactId>apache-rat-plugin</artifactId>
-        <configuration>
-          <excludes>
-            <!-- This file only describes how to build the project and it has 
no license header -->
-            <exclude>BUILD.txt</exclude>
-          </excludes>
-        </configuration>
         <executions>
           <execution>
             <goals>


Reply via email to