METAMODEL-33: Limited the exclusion of rat plugin. Added license headers
authorKasper Sørensen <i.am.kasper.sorensen@gmail.com>
Fri, 27 Dec 2013 08:38:21 +0000 (09:38 +0100)
committerKasper Sørensen <i.am.kasper.sorensen@gmail.com>
Tue, 21 Jan 2014 18:12:09 +0000 (19:12 +0100)
to integrationtest classes.

jdbc/src/test/integrationtests/org/apache/metamodel/DB2Test.java
jdbc/src/test/integrationtests/org/apache/metamodel/FirebirdTest.java
jdbc/src/test/integrationtests/org/apache/metamodel/MysqlTest.java
jdbc/src/test/integrationtests/org/apache/metamodel/OracleTest.java
jdbc/src/test/integrationtests/org/apache/metamodel/PostgresqlTest.java
jdbc/src/test/integrationtests/org/apache/metamodel/SQLServerJtdsDriverTest.java
jdbc/src/test/integrationtests/org/apache/metamodel/SQLServerMicrosoftDriverTest.java
pom.xml

index f32f016..f1f6a6d 100644 (file)
@@ -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.
+ */
 package org.apache.metamodel;
 
 import java.sql.Connection;
index b7a4467..0c7fdf5 100644 (file)
@@ -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.
+ */
 package org.apache.metamodel;
 
 import java.sql.Connection;
index 95d97e5..2a3c730 100644 (file)
@@ -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.
+ */
 package org.apache.metamodel;
 
 import java.sql.Connection;
index 68efee2..0d15dbf 100644 (file)
@@ -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.
+ */
 package org.apache.metamodel;
 
 import java.sql.Connection;
index 54b9e6c..7e7625c 100644 (file)
@@ -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.
+ */
 package org.apache.metamodel;
 
 import java.lang.reflect.Method;
index b0df4bf..b365041 100644 (file)
@@ -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.
+ */
 package org.apache.metamodel;
 
 import java.sql.Connection;
index 83ceeba..1afd798 100644 (file)
@@ -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.
+ */
 package org.apache.metamodel;
 
 import java.sql.Connection;
diff --git a/pom.xml b/pom.xml
index 73dd353..8575335 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -163,49 +163,18 @@ under the License.
                                </configuration>
                        </plugin>
                        <plugin>
-                <groupId>org.apache.rat</groupId>
-                <artifactId>apache-rat-plugin</artifactId>
-                <executions>
-                  <execution>
-                    <id>rat-verify</id>
-                    <phase>test</phase>
-                    <goals>
-                      <goal>check</goal>
-                    </goals>
-                  </execution>
-                </executions>
-                <configuration>
-                   <licenses>
-                 <license implementation="org.apache.rat.analysis.license.SimplePatternBasedLicense">
-                 <licenseFamilyCategory>ASL20</licenseFamilyCategory>
-                 <licenseFamilyName>Apache Software License, 2.0</licenseFamilyName>
-                 <notes>Single licensed ASL v2.0</notes>
-                 <patterns>
-                       <pattern>Licensed to the Apache Software Foundation (ASF) under one
-                       or more contributor license agreements.</pattern>
-                 </patterns>
-                 </license>
-                 </licenses>
-                 <excludeSubProjects>false</excludeSubProjects>
-                 <excludes>
-                   <exclude>CHANGES.txt</exclude>
-                   <exclude>README</exclude>
-                   <exclude>NOTICE.txt</exclude>
-                   <exclude>LICENSE.txt</exclude>
-                   <exclude>KEYS</exclude>
-                   <exclude>**/.gitignore/**</exclude>
-                   <exclude>.git/**</exclude>
-                   <exclude>**/src/test/**</exclude>
-                   <exclude>**/src/site/**</exclude>
-                   <exclude>**/.project</exclude>
-                   <exclude>**/.classpath</exclude>
-                   <exclude>**/.settings/**</exclude>
-                   <exclude>**/target/**</exclude>
-                   <exclude>DEPENDENCIES</exclude>
-                   <exclude>DISCLAIMER</exclude>
-                 </excludes>
-                </configuration>
-              </plugin>
+                               <groupId>org.apache.rat</groupId>
+                               <artifactId>apache-rat-plugin</artifactId>
+                               <executions>
+                                       <execution>
+                                               <id>rat-verify</id>
+                                               <phase>validate</phase>
+                                               <goals>
+                                                       <goal>check</goal>
+                                               </goals>
+                                       </execution>
+                               </executions>
+                       </plugin>
                        <plugin>
                                <!-- Ensure inclusion of license header in all main java files -->
                                <groupId>com.google.code.maven-license-plugin</groupId>
@@ -352,6 +321,44 @@ under the License.
                                                </lifecycleMappingMetadata>
                                        </configuration>
                                </plugin>
+                               
+                               <plugin>
+                                       <groupId>org.apache.rat</groupId>
+                                       <artifactId>apache-rat-plugin</artifactId>
+                                       <configuration>
+                                               <licenses>
+                                                       <license implementation="org.apache.rat.analysis.license.SimplePatternBasedLicense">
+                                                               <licenseFamilyCategory>ASL20</licenseFamilyCategory>
+                                                               <licenseFamilyName>Apache Software License, 2.0</licenseFamilyName>
+                                                               <notes>Single licensed ASL v2.0</notes>
+                                                               <patterns>
+                                                                       <pattern>Licensed to the Apache Software Foundation (ASF) under one
+                                                                               or more contributor license agreements.</pattern>
+                                                               </patterns>
+                                                       </license>
+                                               </licenses>
+                                               <excludeSubProjects>false</excludeSubProjects>
+                                               <excludes>
+                                                       <exclude>CHANGES.txt</exclude>
+                                                       <exclude>README</exclude>
+                                                       <exclude>NOTICE.txt</exclude>
+                                                       <exclude>LICENSE.txt</exclude>
+                                                       <exclude>KEYS</exclude>
+                                                       <exclude>**/.gitignore/**</exclude>
+                                                       <exclude>.git/**</exclude>
+                                                       <exclude>**/src/test/resources/**</exclude>
+                                                       <exclude>**/src/site/**</exclude>
+                                                       <exclude>**/.project</exclude>
+                                                       <exclude>**/.classpath</exclude>
+                                                       <exclude>**/.settings/**</exclude>
+                                                       <exclude>**/target/**</exclude>
+                                                       <exclude>DEPENDENCIES</exclude>
+                                                       <exclude>DISCLAIMER</exclude>
+                                               </excludes>
+                                       </configuration>
+                               
+                               </plugin>
+                               
                        </plugins>
                </pluginManagement>
        </build>