fix apache rat plugin configuration (#7396)

This commit is contained in:
Gong Dewei 2021-03-17 21:21:50 +08:00 committed by ken.lj
parent a812a7a9bf
commit 9b0e30c7e2
2 changed files with 107 additions and 57 deletions

View File

@ -27,4 +27,54 @@
<maven.deploy.skip>true</maven.deploy.skip>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<version>0.13</version>
<executions>
<execution>
<id>verify.rat</id>
<phase>verify</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
<configuration>
<excludes>
<exclude>**/*.versionsBackup</exclude>
<exclude>**/.idea/</exclude>
<exclude>**/*.iml</exclude>
<exclude>**/*.txt</exclude>
<exclude>**/*.load</exclude>
<exclude>**/*.flex</exclude>
<exclude>**/*.fc</exclude>
<exclude>**/*.javascript</exclude>
<exclude>**/*.properties</exclude>
<exclude>**/*.thrift</exclude>
<exclude>**/*.sh</exclude>
<exclude>**/*.bat</exclude>
<exclude>**/*.md</exclude>
<exclude>.git/</exclude>
<exclude>.gitignore</exclude>
<exclude>.repository/</exclude>
<exclude>**/.settings/*</exclude>
<exclude>**/.classpath</exclude>
<exclude>**/.project</exclude>
<exclude>**/target/**</exclude>
<exclude>**/*.log</exclude>
<exclude>CONTRIBUTING.md</exclude>
<exclude>README.md</exclude>
<exclude>**/codestyle/*</exclude>
<exclude>**/resources/META-INF/**</exclude>
<exclude>.github/**</exclude>
<exclude>compiler/**</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
</project>

114
pom.xml
View File

@ -529,65 +529,65 @@
<goals>
<goal>check</goal>
</goals>
<configuration>
<excludes>
<exclude>**/*.versionsBackup</exclude>
<exclude>**/.idea/</exclude>
<exclude>**/*.iml</exclude>
<exclude>**/*.txt</exclude>
<exclude>**/*.load</exclude>
<exclude>**/*.flex</exclude>
<exclude>**/*.fc</exclude>
<exclude>**/*.javascript</exclude>
<exclude>**/*.properties</exclude>
<exclude>**/*.thrift</exclude>
<exclude>**/*.sh</exclude>
<exclude>**/*.bat</exclude>
<exclude>**/*.md</exclude>
<exclude>.git/</exclude>
<exclude>.gitignore</exclude>
<!-- ASF jenkins box puts the Maven repo in our root directory. -->
<exclude>.repository/</exclude>
<exclude>**/.settings/*</exclude>
<exclude>**/.classpath</exclude>
<exclude>**/.project</exclude>
<exclude>**/target/**</exclude>
<exclude>**/*.log</exclude>
<exclude>CODE_OF_CONDUCT.md</exclude>
<exclude>.codecov.yml</exclude>
<exclude>.travis.yml</exclude>
<exclude>PULL_REQUEST_TEMPLATE.md</exclude>
<exclude>CONTRIBUTING.md</exclude>
<exclude>README.md</exclude>
<exclude>Jenkinsfile</exclude>
<exclude>**/codestyle/*</exclude>
<exclude>**/resources/META-INF/**</exclude>
<!-- exclude the netty files -->
<exclude>**/org/apache/dubbo/common/threadlocal/InternalThreadLocal.java</exclude>
<exclude>**/org/apache/dubbo/common/threadlocal/InternalThreadLocalMap.java</exclude>
<exclude>**/org/apache/dubbo/common/timer/TimerTask.java</exclude>
<exclude>**/org/apache/dubbo/common/timer/Timer.java</exclude>
<exclude>**/org/apache/dubbo/common/timer/Timeout.java</exclude>
<exclude>**/org/apache/dubbo/common/timer/HashedWheelTimer.java</exclude>
<!-- exclude the edazdarevic files -->
<exclude>**/org/apache/dubbo/common/utils/CIDRUtils.java</exclude>
<!-- exclude protobuf generated files -->
<exclude>**/org/apache/dubbo/common/serialize/protobuf/support/wrapper/MapValue.java
</exclude>
<exclude>
**/org/apache/dubbo/common/serialize/protobuf/support/wrapper/ThrowablePB.java
</exclude>
<exclude>
**/org/apache/dubbo/common/utils/Utf8Utils.java
</exclude>
<exclude>.github/**</exclude>
<exclude>compiler/**</exclude>
<!-- exclude mockito extensions spi files -->
<exclude>**/mockito-extensions/*</exclude>
</excludes>
</configuration>
</execution>
</executions>
<configuration>
<excludes>
<exclude>**/*.versionsBackup</exclude>
<exclude>**/.idea/</exclude>
<exclude>**/*.iml</exclude>
<exclude>**/*.txt</exclude>
<exclude>**/*.load</exclude>
<exclude>**/*.flex</exclude>
<exclude>**/*.fc</exclude>
<exclude>**/*.javascript</exclude>
<exclude>**/*.properties</exclude>
<exclude>**/*.thrift</exclude>
<exclude>**/*.sh</exclude>
<exclude>**/*.bat</exclude>
<exclude>**/*.md</exclude>
<exclude>.git/</exclude>
<exclude>.gitignore</exclude>
<!-- ASF jenkins box puts the Maven repo in our root directory. -->
<exclude>.repository/</exclude>
<exclude>**/.settings/*</exclude>
<exclude>**/.classpath</exclude>
<exclude>**/.project</exclude>
<exclude>**/target/**</exclude>
<exclude>**/*.log</exclude>
<exclude>CODE_OF_CONDUCT.md</exclude>
<exclude>.codecov.yml</exclude>
<exclude>.travis.yml</exclude>
<exclude>PULL_REQUEST_TEMPLATE.md</exclude>
<exclude>CONTRIBUTING.md</exclude>
<exclude>README.md</exclude>
<exclude>Jenkinsfile</exclude>
<exclude>**/codestyle/*</exclude>
<exclude>**/resources/META-INF/**</exclude>
<!-- exclude the netty files -->
<exclude>**/org/apache/dubbo/common/threadlocal/InternalThreadLocal.java</exclude>
<exclude>**/org/apache/dubbo/common/threadlocal/InternalThreadLocalMap.java</exclude>
<exclude>**/org/apache/dubbo/common/timer/TimerTask.java</exclude>
<exclude>**/org/apache/dubbo/common/timer/Timer.java</exclude>
<exclude>**/org/apache/dubbo/common/timer/Timeout.java</exclude>
<exclude>**/org/apache/dubbo/common/timer/HashedWheelTimer.java</exclude>
<!-- exclude the edazdarevic files -->
<exclude>**/org/apache/dubbo/common/utils/CIDRUtils.java</exclude>
<!-- exclude protobuf generated files -->
<exclude>**/org/apache/dubbo/common/serialize/protobuf/support/wrapper/MapValue.java
</exclude>
<exclude>
**/org/apache/dubbo/common/serialize/protobuf/support/wrapper/ThrowablePB.java
</exclude>
<exclude>
**/org/apache/dubbo/common/utils/Utf8Utils.java
</exclude>
<exclude>.github/**</exclude>
<exclude>compiler/**</exclude>
<!-- exclude mockito extensions spi files -->
<exclude>**/mockito-extensions/*</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>