From 7f9bde4bb0e5ab62cc1f24e308cf4c68e3ad1816 Mon Sep 17 00:00:00 2001 From: Guillaume Nodet Date: Wed, 5 Oct 2022 15:37:00 +0200 Subject: [PATCH] Make sure RAT plugin ignores files in the target folder (#813) * Make sure RAT plugin ignores files in the target folder * Fix gitignore so that it can work with rat, do not inherit execution in children, use a single place to configure rat * Exclude .asf.yaml from rat check * Add repo/ to the .gitignore file as it's often used for local repository --- .gitignore | 3 ++- pom.xml | 45 +++++++++++++++++++++------------------------ 2 files changed, 23 insertions(+), 25 deletions(-) diff --git a/.gitignore b/.gitignore index e7c89985796..30f07e74b80 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -target/ +**/target/** .project .classpath .settings/ @@ -14,3 +14,4 @@ target/ .factorypath .checkstyle .vscode/ +repo/ diff --git a/pom.xml b/pom.xml index 3a8e16b486b..507b80ed4ab 100644 --- a/pom.xml +++ b/pom.xml @@ -532,23 +532,6 @@ under the License. buildnumber-maven-plugin 1.4 - - org.apache.rat - apache-rat-plugin - - - src/test/resources*/** - src/test/projects/** - src/test/remote-repo/** - **/*.odg - - src/main/appended-resources/licenses/EPL-1.0.txt - src/main/appended-resources/licenses/unrecognized-javax.annotation-api-1.2.txt - - - org.eclipse.m2e @@ -615,13 +598,27 @@ under the License. org.apache.rat apache-rat-plugin - - - bootstrap/** - README.bootstrap.txt - README.md - - + + + rat-check + false + + + **/.gitattributes + src/test/resources*/** + src/test/projects/** + src/test/remote-repo/** + **/*.odg + .asf.yaml + + src/main/appended-resources/licenses/EPL-1.0.txt + src/main/appended-resources/licenses/unrecognized-javax.annotation-api-1.2.txt + + + + org.apache.maven.plugins