From a7a5b8169ba76a8169898735c91856b3722af639 Mon Sep 17 00:00:00 2001 From: Guillaume Nodet Date: Wed, 5 Oct 2022 16:44:10 +0200 Subject: [PATCH] Make sure RAT plugin ignores files in the target folder (#813) (#815) * 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 | 48 ++++++++++++++++++++++-------------------------- 2 files changed, 24 insertions(+), 27 deletions(-) diff --git a/.gitignore b/.gitignore index e7c8998579..30f07e74b8 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 53c9fd51a8..ad3df8cbf7 100644 --- a/pom.xml +++ b/pom.xml @@ -583,25 +583,6 @@ under the License. buildnumber-maven-plugin 1.4 - - org.apache.rat - apache-rat-plugin - - - **/.gitattributes - 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-aopalliance-1.0.txt - src/main/appended-resources/licenses/unrecognized-javax.annotation-api-1.3.2.txt - - - org.eclipse.m2e @@ -668,13 +649,28 @@ 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-aopalliance-1.0.txt + src/main/appended-resources/licenses/unrecognized-javax.annotation-api-1.3.2.txt + + + + org.apache.maven.plugins