mirror of https://github.com/apache/maven.git
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
This commit is contained in:
parent
2a9f39336c
commit
37b579b053
|
@ -1,4 +1,4 @@
|
||||||
target/
|
**/target/**
|
||||||
.project
|
.project
|
||||||
.classpath
|
.classpath
|
||||||
.settings/
|
.settings/
|
||||||
|
@ -14,3 +14,4 @@ target/
|
||||||
.checkstyle
|
.checkstyle
|
||||||
.factorypath
|
.factorypath
|
||||||
.vscode/
|
.vscode/
|
||||||
|
repo/
|
||||||
|
|
|
@ -160,6 +160,16 @@ under the License.
|
||||||
<topSiteURL>${project.distributionManagement.site.url}/..</topSiteURL>
|
<topSiteURL>${project.distributionManagement.site.url}/..</topSiteURL>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.rat</groupId>
|
||||||
|
<artifactId>apache-rat-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>rat-check</id>
|
||||||
|
<phase>none</phase>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</project>
|
</project>
|
||||||
|
|
52
pom.xml
52
pom.xml
|
@ -573,27 +573,6 @@ under the License.
|
||||||
<artifactId>buildnumber-maven-plugin</artifactId>
|
<artifactId>buildnumber-maven-plugin</artifactId>
|
||||||
<version>1.4</version>
|
<version>1.4</version>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.rat</groupId>
|
|
||||||
<artifactId>apache-rat-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<excludes>
|
|
||||||
<exclude>**/.gitattributes</exclude>
|
|
||||||
<exclude>src/test/resources*/**</exclude>
|
|
||||||
<exclude>src/test/projects/**</exclude>
|
|
||||||
<exclude>src/test/remote-repo/**</exclude>
|
|
||||||
<exclude>**/*.odg</exclude>
|
|
||||||
<!--
|
|
||||||
! Excluded the license files itself cause they do not have have a license of themselves.
|
|
||||||
-->
|
|
||||||
<exclude>src/main/appended-resources/licenses/MIT-slf4j-api-1.7.30.txt</exclude>
|
|
||||||
<exclude>src/main/appended-resources/licenses/EPL-1.0.txt</exclude>
|
|
||||||
<exclude>src/main/appended-resources/licenses/unrecognized-aopalliance-1.0.txt</exclude>
|
|
||||||
<exclude>src/main/appended-resources/licenses/unrecognized-javax.annotation-api-1.3.2.txt</exclude>
|
|
||||||
<exclude>plexus-utils/target/**</exclude>
|
|
||||||
</excludes>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
</plugins>
|
||||||
</pluginManagement>
|
</pluginManagement>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
@ -635,14 +614,29 @@ under the License.
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.rat</groupId>
|
<groupId>org.apache.rat</groupId>
|
||||||
<artifactId>apache-rat-plugin</artifactId>
|
<artifactId>apache-rat-plugin</artifactId>
|
||||||
<configuration>
|
<executions>
|
||||||
<excludes combine.children="append">
|
<execution>
|
||||||
<exclude>bootstrap/**</exclude>
|
<id>rat-check</id>
|
||||||
<exclude>README.bootstrap.txt</exclude>
|
<inherited>false</inherited>
|
||||||
<exclude>README.md</exclude>
|
<configuration>
|
||||||
<exclude>**/.factorypath</exclude>
|
<excludes>
|
||||||
</excludes>
|
<exclude>**/.gitattributes</exclude>
|
||||||
</configuration>
|
<exclude>src/test/resources*/**</exclude>
|
||||||
|
<exclude>src/test/projects/**</exclude>
|
||||||
|
<exclude>src/test/remote-repo/**</exclude>
|
||||||
|
<exclude>**/*.odg</exclude>
|
||||||
|
<exclude>.asf.yaml</exclude>
|
||||||
|
<!--
|
||||||
|
! Excluded the license files itself cause they do not have have a license of themselves.
|
||||||
|
-->
|
||||||
|
<exclude>src/main/appended-resources/licenses/MIT-slf4j-api-1.7.30.txt</exclude>
|
||||||
|
<exclude>src/main/appended-resources/licenses/EPL-1.0.txt</exclude>
|
||||||
|
<exclude>src/main/appended-resources/licenses/unrecognized-aopalliance-1.0.txt</exclude>
|
||||||
|
<exclude>src/main/appended-resources/licenses/unrecognized-javax.annotation-api-1.3.2.txt</exclude>
|
||||||
|
</excludes>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
|
Loading…
Reference in New Issue