Skip to content

Commit

Permalink
enable rat plugin and fix some missing license headers
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/maven/indexer/trunk@1355306 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
olamy committed Jun 29, 2012
1 parent d0a2491 commit e5be289
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 11 deletions.
@@ -1,5 +1,24 @@
package org.apache.maven.index;

/*
* 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.File;
import java.io.IOException;
import java.util.Arrays;
Expand Down
@@ -1,5 +1,24 @@
package org.apache.maven.index.util;

/*
* 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.util.ArrayList;
import java.util.Arrays;
import java.util.List;
Expand Down
@@ -1,5 +1,24 @@
package org.apache.maven.index.util;

/*
* 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.IOException;
import java.util.Collection;
import java.util.Collections;
Expand Down
45 changes: 34 additions & 11 deletions pom.xml
Expand Up @@ -143,20 +143,43 @@ under the License.
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<version>0.8</version>
<executions>
<execution>
<id>rat-verify</id>
<phase>test</phase>
<goals>
<goal>check</goal>
</goals>
<configuration>
<excludes>
<exclude>README.md</exclude>
<exclude>.gitignore</exclude>
<exclude>NOTICE</exclude>
<exclude>.git/**</exclude>
<exclude>.idea/**</exclude>
<!-- exlude some test resources from rat analysis -->
<exclude>src/test/**/*.sha1</exclude>
<exclude>src/test/**/*.md5</exclude>
<exclude>src/test/**/*.xml</exclude>
<exclude>src/test/**/*.pom</exclude>
<exclude>src/test/**/*.asc</exclude>
<exclude>src/test/**/*.properties</exclude>
<exclude>src/test/**/*.swc</exclude>
<exclude>src/test/**/*.txt</exclude>
<exclude>src/test/**/*.filename</exclude>
<exclude>src/test/**/.placeholder</exclude>
</excludes>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<configuration>
<excludes>
<exclude>README.md</exclude>
<exclude>.gitignore</exclude>
<exclude>DEPENDENCIES</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
Expand Down

0 comments on commit e5be289

Please sign in to comment.