From 37b579b053e81272512ef7c78018587d4a6268bf 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 ++- maven-bom/pom.xml | 10 +++++++++ pom.xml | 52 +++++++++++++++++++++-------------------------- 3 files changed, 35 insertions(+), 30 deletions(-) diff --git a/.gitignore b/.gitignore index 69c3758e8a..b630410a53 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -target/ +**/target/** .project .classpath .settings/ @@ -14,3 +14,4 @@ target/ .checkstyle .factorypath .vscode/ +repo/ diff --git a/maven-bom/pom.xml b/maven-bom/pom.xml index 257eac644a..ac7a6faa67 100644 --- a/maven-bom/pom.xml +++ b/maven-bom/pom.xml @@ -160,6 +160,16 @@ under the License. ${project.distributionManagement.site.url}/.. + + org.apache.rat + apache-rat-plugin + + + rat-check + none + + + diff --git a/pom.xml b/pom.xml index 950f3f9034..a7a5c65afa 100644 --- a/pom.xml +++ b/pom.xml @@ -573,27 +573,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/MIT-slf4j-api-1.7.30.txt - 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 - plexus-utils/target/** - - - @@ -635,14 +614,29 @@ under the License. org.apache.rat apache-rat-plugin - - - bootstrap/** - README.bootstrap.txt - README.md - **/.factorypath - - + + + rat-check + false + + + **/.gitattributes + src/test/resources*/** + src/test/projects/** + src/test/remote-repo/** + **/*.odg + .asf.yaml + + src/main/appended-resources/licenses/MIT-slf4j-api-1.7.30.txt + 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