You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@creadur.apache.org by rd...@apache.org on 2009/02/27 23:09:03 UTC

svn commit: r748720 - /incubator/rat/main/trunk/apache-rat/pom.xml

Author: rdonkin
Date: Fri Feb 27 22:09:03 2009
New Revision: 748720

URL: http://svn.apache.org/viewvc?rev=748720&view=rev
Log:
Ensure aggregate jar contains the right license and notice. RAT-38 https://issues.apache.org/jira/browse/RAT-38

Modified:
    incubator/rat/main/trunk/apache-rat/pom.xml

Modified: incubator/rat/main/trunk/apache-rat/pom.xml
URL: http://svn.apache.org/viewvc/incubator/rat/main/trunk/apache-rat/pom.xml?rev=748720&r1=748719&r2=748720&view=diff
==============================================================================
--- incubator/rat/main/trunk/apache-rat/pom.xml (original)
+++ incubator/rat/main/trunk/apache-rat/pom.xml Fri Feb 27 22:09:03 2009
@@ -66,16 +66,36 @@
     </resources>    
     <plugins>
       <plugin>
+        <artifactId>maven-remote-resources-plugin</artifactId>
+        <version>1.0</version>
+        <executions>
+          <execution>
+            <goals>
+              <goal>process</goal>
+            </goals>
+            <configuration>
+              <resourceBundles>
+                <resourceBundle>org.apache:apache-jar-resource-bundle:1.4</resourceBundle>
+              </resourceBundles>
+              <properties>
+                  <addLicense>true</addLicense>
+              </properties>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
         <artifactId>maven-dependency-plugin</artifactId>
         <executions>
           <execution>
-            <phase>compile</phase>
+            <phase>process</phase>
             <goals>
               <goal>unpack-dependencies</goal>
             </goals>
             <configuration>
               <includeScope>runtime</includeScope>
               <outputDirectory>${project.build.outputDirectory}</outputDirectory>
+              <overWriteIfNewer>false</overWriteIfNewer>
             </configuration>
           </execution>
         </executions>
@@ -83,6 +103,10 @@
       <plugin>
         <artifactId>maven-jar-plugin</artifactId>
         <configuration>
+          <excludes>
+            <exclude>**/LICENSE.txt</exclude>
+            <exclude>**/NOTICE.txt</exclude>
+          </excludes>
           <archive>
             <manifestEntries>
               <Main-Class>org.apache.rat.Report</Main-Class>