You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by de...@apache.org on 2013/09/14 22:16:48 UTC

svn commit: r1523310 - in /maven/plugins/trunk/maven-rar-plugin: ./ src/it/default/ src/it/default/src/main/custom/ src/it/default/src/main/rar/ src/it/filtered/ src/it/filtered/src/main/custom/ src/it/filtered/src/main/ext-filtered/ src/it/filtered/sr...

Author: dennisl
Date: Sat Sep 14 20:16:47 2013
New Revision: 1523310

URL: http://svn.apache.org/r1523310
Log:
Add missing license headers where possible.
Configure explicit RAT exclusions for the files that cannot contain a license header.
This plugin now passes the checks done by RAT.

Modified:
    maven/plugins/trunk/maven-rar-plugin/pom.xml
    maven/plugins/trunk/maven-rar-plugin/src/it/default/src/main/custom/ra.xml
    maven/plugins/trunk/maven-rar-plugin/src/it/default/src/main/rar/SomeResource.txt
    maven/plugins/trunk/maven-rar-plugin/src/it/default/verify.bsh
    maven/plugins/trunk/maven-rar-plugin/src/it/filtered/src/main/custom/ra.xml
    maven/plugins/trunk/maven-rar-plugin/src/it/filtered/src/main/ext-filtered/wine.txt
    maven/plugins/trunk/maven-rar-plugin/src/it/filtered/src/main/ext/wine.txt
    maven/plugins/trunk/maven-rar-plugin/src/it/filtered/src/main/rar/SomeResource.txt
    maven/plugins/trunk/maven-rar-plugin/src/it/filtered/verify.bsh
    maven/plugins/trunk/maven-rar-plugin/src/test/remote-repo/org/apache/maven/test/maven-artifact01/1.0-SNAPSHOT/maven-artifact01-1.0-SNAPSHOT.pom
    maven/plugins/trunk/maven-rar-plugin/src/test/remote-repo/org/apache/maven/test/maven-artifact02/1.0-SNAPSHOT/maven-artifact02-1.0-SNAPSHOT.pom

Modified: maven/plugins/trunk/maven-rar-plugin/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-rar-plugin/pom.xml?rev=1523310&r1=1523309&r2=1523310&view=diff
==============================================================================
--- maven/plugins/trunk/maven-rar-plugin/pom.xml (original)
+++ maven/plugins/trunk/maven-rar-plugin/pom.xml Sat Sep 14 20:16:47 2013
@@ -121,6 +121,19 @@ under the License.
             <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
           </configuration>
         </plugin>
+        <plugin>
+          <groupId>org.apache.rat</groupId>
+          <artifactId>apache-rat-plugin</artifactId>
+          <version>0.10</version>
+          <configuration>
+            <excludes>
+              <!--
+                The manifest specification does not describe any method for writing comments into the manifest.
+              -->
+              <exclude>src/test/resources/unit/basic-rar-with-manifest/src/main/rar/META-INF/MANIFEST.MF</exclude>
+            </excludes>
+          </configuration>
+        </plugin>
       </plugins>
     </pluginManagement>
 

Modified: maven/plugins/trunk/maven-rar-plugin/src/it/default/src/main/custom/ra.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-rar-plugin/src/it/default/src/main/custom/ra.xml?rev=1523310&r1=1523309&r2=1523310&view=diff
==============================================================================
--- maven/plugins/trunk/maven-rar-plugin/src/it/default/src/main/custom/ra.xml (original)
+++ maven/plugins/trunk/maven-rar-plugin/src/it/default/src/main/custom/ra.xml Sat Sep 14 20:16:47 2013
@@ -1,4 +1,22 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+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.
+-->
 <connector>
   <fake-content></fake-content>
 </connector>
\ No newline at end of file

Modified: maven/plugins/trunk/maven-rar-plugin/src/it/default/src/main/rar/SomeResource.txt
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-rar-plugin/src/it/default/src/main/rar/SomeResource.txt?rev=1523310&r1=1523309&r2=1523310&view=diff
==============================================================================
--- maven/plugins/trunk/maven-rar-plugin/src/it/default/src/main/rar/SomeResource.txt (original)
+++ maven/plugins/trunk/maven-rar-plugin/src/it/default/src/main/rar/SomeResource.txt Sat Sep 14 20:16:47 2013
@@ -1 +1,18 @@
+# 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.
+
 foo=${project.version}
\ No newline at end of file

Modified: maven/plugins/trunk/maven-rar-plugin/src/it/default/verify.bsh
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-rar-plugin/src/it/default/verify.bsh?rev=1523310&r1=1523309&r2=1523310&view=diff
==============================================================================
--- maven/plugins/trunk/maven-rar-plugin/src/it/default/verify.bsh (original)
+++ maven/plugins/trunk/maven-rar-plugin/src/it/default/verify.bsh Sat Sep 14 20:16:47 2013
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
 import java.io.*;
 import java.util.*;
 import java.util.jar.*;

Modified: maven/plugins/trunk/maven-rar-plugin/src/it/filtered/src/main/custom/ra.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-rar-plugin/src/it/filtered/src/main/custom/ra.xml?rev=1523310&r1=1523309&r2=1523310&view=diff
==============================================================================
--- maven/plugins/trunk/maven-rar-plugin/src/it/filtered/src/main/custom/ra.xml (original)
+++ maven/plugins/trunk/maven-rar-plugin/src/it/filtered/src/main/custom/ra.xml Sat Sep 14 20:16:47 2013
@@ -1,4 +1,22 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+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.
+-->
 <connector>
   <fake-content></fake-content>
 </connector>
\ No newline at end of file

Modified: maven/plugins/trunk/maven-rar-plugin/src/it/filtered/src/main/ext-filtered/wine.txt
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-rar-plugin/src/it/filtered/src/main/ext-filtered/wine.txt?rev=1523310&r1=1523309&r2=1523310&view=diff
==============================================================================
--- maven/plugins/trunk/maven-rar-plugin/src/it/filtered/src/main/ext-filtered/wine.txt (original)
+++ maven/plugins/trunk/maven-rar-plugin/src/it/filtered/src/main/ext-filtered/wine.txt Sat Sep 14 20:16:47 2013
@@ -1 +1,18 @@
+# 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.
+
 foo=${bestwine}
\ No newline at end of file

Modified: maven/plugins/trunk/maven-rar-plugin/src/it/filtered/src/main/ext/wine.txt
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-rar-plugin/src/it/filtered/src/main/ext/wine.txt?rev=1523310&r1=1523309&r2=1523310&view=diff
==============================================================================
--- maven/plugins/trunk/maven-rar-plugin/src/it/filtered/src/main/ext/wine.txt (original)
+++ maven/plugins/trunk/maven-rar-plugin/src/it/filtered/src/main/ext/wine.txt Sat Sep 14 20:16:47 2013
@@ -1 +1,18 @@
+# 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.
+
 foo=${bestwine}
\ No newline at end of file

Modified: maven/plugins/trunk/maven-rar-plugin/src/it/filtered/src/main/rar/SomeResource.txt
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-rar-plugin/src/it/filtered/src/main/rar/SomeResource.txt?rev=1523310&r1=1523309&r2=1523310&view=diff
==============================================================================
--- maven/plugins/trunk/maven-rar-plugin/src/it/filtered/src/main/rar/SomeResource.txt (original)
+++ maven/plugins/trunk/maven-rar-plugin/src/it/filtered/src/main/rar/SomeResource.txt Sat Sep 14 20:16:47 2013
@@ -1 +1,18 @@
+# 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.
+
 foo=${project.version}
\ No newline at end of file

Modified: maven/plugins/trunk/maven-rar-plugin/src/it/filtered/verify.bsh
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-rar-plugin/src/it/filtered/verify.bsh?rev=1523310&r1=1523309&r2=1523310&view=diff
==============================================================================
--- maven/plugins/trunk/maven-rar-plugin/src/it/filtered/verify.bsh (original)
+++ maven/plugins/trunk/maven-rar-plugin/src/it/filtered/verify.bsh Sat Sep 14 20:16:47 2013
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
 import java.io.*;
 import java.util.*;
 import java.util.jar.*;

Modified: maven/plugins/trunk/maven-rar-plugin/src/test/remote-repo/org/apache/maven/test/maven-artifact01/1.0-SNAPSHOT/maven-artifact01-1.0-SNAPSHOT.pom
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-rar-plugin/src/test/remote-repo/org/apache/maven/test/maven-artifact01/1.0-SNAPSHOT/maven-artifact01-1.0-SNAPSHOT.pom?rev=1523310&r1=1523309&r2=1523310&view=diff
==============================================================================
--- maven/plugins/trunk/maven-rar-plugin/src/test/remote-repo/org/apache/maven/test/maven-artifact01/1.0-SNAPSHOT/maven-artifact01-1.0-SNAPSHOT.pom (original)
+++ maven/plugins/trunk/maven-rar-plugin/src/test/remote-repo/org/apache/maven/test/maven-artifact01/1.0-SNAPSHOT/maven-artifact01-1.0-SNAPSHOT.pom Sat Sep 14 20:16:47 2013
@@ -1,3 +1,21 @@
+<!--
+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.
+-->
 <project>
   <modelVersion>4.0.0</modelVersion>
   <groupId>org.apache.maven.test</groupId>

Modified: maven/plugins/trunk/maven-rar-plugin/src/test/remote-repo/org/apache/maven/test/maven-artifact02/1.0-SNAPSHOT/maven-artifact02-1.0-SNAPSHOT.pom
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-rar-plugin/src/test/remote-repo/org/apache/maven/test/maven-artifact02/1.0-SNAPSHOT/maven-artifact02-1.0-SNAPSHOT.pom?rev=1523310&r1=1523309&r2=1523310&view=diff
==============================================================================
--- maven/plugins/trunk/maven-rar-plugin/src/test/remote-repo/org/apache/maven/test/maven-artifact02/1.0-SNAPSHOT/maven-artifact02-1.0-SNAPSHOT.pom (original)
+++ maven/plugins/trunk/maven-rar-plugin/src/test/remote-repo/org/apache/maven/test/maven-artifact02/1.0-SNAPSHOT/maven-artifact02-1.0-SNAPSHOT.pom Sat Sep 14 20:16:47 2013
@@ -1,3 +1,21 @@
+<!--
+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.
+-->
 <project>
   <modelVersion>4.0.0</modelVersion>
   <groupId>org.apache.maven.test</groupId>