Skip to content

Commit 78782a3

Browse files
committed
RAT check: run only at root of the tree
1 parent 0f2dd4a commit 78782a3

1 file changed

Lines changed: 20 additions & 37 deletions

File tree

‎pom.xml‎

Lines changed: 20 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,11 @@
6666
</distributionManagement>
6767

6868
<properties>
69-
<!-- *** Remove the line below when 3.0.0 is released -->
70-
<shiro.previousVersion>3.0.0</shiro.previousVersion>
7169
<!-- Replaced by the build number plugin at build time: -->
7270
<buildNumber>${user.name}-${maven.build.timestamp}</buildNumber>
7371
<project.build.outputTimestamp>2026-02-07T22:56:07Z</project.build.outputTimestamp>
7472
<root.dir>${maven.multiModuleProjectDirectory}</root.dir>
73+
<rat.skip>false</rat.skip>
7574
<jacoco.skip>true</jacoco.skip>
7675
<japicmp-skip>false</japicmp-skip>
7776
<japicmp.skip>${japicmp-skip}</japicmp.skip>
@@ -330,16 +329,18 @@
330329
</dependency>
331330
</dependencies>
332331
</plugin>
333-
<plugin>
334-
<groupId>org.apache.maven.plugins</groupId>
335-
<artifactId>maven-site-plugin</artifactId>
336-
<version>4.0.0-M16</version>
337-
</plugin>
338332
<plugin>
339333
<groupId>org.apache.rat</groupId>
340334
<artifactId>apache-rat-plugin</artifactId>
341335
<configuration>
342-
<!-- note that this configuration needs to be maintained both in pluginManagement and reporting sections -->
336+
<!-- also applied to the RAT report in <reporting> -->
337+
<!--
338+
RAT is not thread-safe in parallel (-T / mvnd) builds (shared .gitignore parser and
339+
license matchers), so it is skipped in modules and runs once at the root,
340+
scanning the whole tree. This also covers command-line "apache-rat:check" runs.
341+
-->
342+
<skip>true</skip>
343+
<excludeSubProjects>false</excludeSubProjects>
343344
<inputExcludes>
344345
<inputExclude>**/.externalToolBuilders/*</inputExclude>
345346
<inputExclude>**/infinitest.filters</inputExclude>
@@ -440,15 +441,18 @@
440441
<artifactId>japicmp-maven-plugin</artifactId>
441442
<version>0.26.2</version>
442443
<configuration>
444+
<!-- If specific old version is needed, uncomment the following and set the version to compare against
443445
<oldVersion>
444446
<dependency>
445447
<groupId>${project.groupId}</groupId>
446448
<artifactId>${project.artifactId}</artifactId>
447-
<version>${shiro.previousVersion}</version>
449+
<version>3.0.0</version>
448450
<type>jar</type>
449451
</dependency>
450452
</oldVersion>
453+
-->
451454
<parameter>
455+
<oldVersionPattern>\d+\.0\.0</oldVersionPattern>
452456
<onlyModified>true</onlyModified>
453457
<breakBuildOnSourceIncompatibleModifications>true</breakBuildOnSourceIncompatibleModifications>
454458
<breakBuildOnBinaryIncompatibleModifications>true</breakBuildOnBinaryIncompatibleModifications>
@@ -538,6 +542,11 @@
538542
<plugin>
539543
<groupId>org.apache.rat</groupId>
540544
<artifactId>apache-rat-plugin</artifactId>
545+
<!-- only run at the root, see pluginManagement -->
546+
<inherited>false</inherited>
547+
<configuration>
548+
<skip>${rat.skip}</skip>
549+
</configuration>
541550
<executions>
542551
<execution>
543552
<id>rat-check</id>
@@ -1412,36 +1421,10 @@
14121421
<plugin>
14131422
<groupId>org.apache.rat</groupId>
14141423
<artifactId>apache-rat-plugin</artifactId>
1415-
<!-- only run at the root -->
14161424
<inherited>false</inherited>
1425+
<!-- configuration is inherited from build/pluginManagement -->
14171426
<configuration>
1418-
<!-- note that this configuration needs to be maintained both in pluginManagement and reporting sections -->
1419-
<inputExcludes>
1420-
<inputExclude>**/.externalToolBuilders/*</inputExclude>
1421-
<inputExclude>**/infinitest.filters</inputExclude>
1422-
<!-- Apparently some test in samples/spring-client generates velocity log - would better to reconfigure to output to target/ -->
1423-
<inputExclude>velocity.log</inputExclude>
1424-
<inputExclude>CONTRIBUTING.md</inputExclude>
1425-
<inputExclude>AGENTS.md</inputExclude>
1426-
<inputExclude>SECURITY.md</inputExclude>
1427-
<inputExclude>**/README.md</inputExclude>
1428-
<inputExclude>**/*.json</inputExclude>
1429-
<inputExclude>**/spring.factories</inputExclude>
1430-
<inputExclude>**/org.springframework.boot.autoconfigure.AutoConfiguration.imports</inputExclude>
1431-
<inputExclude>**/spring.provides</inputExclude>
1432-
<inputExclude>**/*.iml</inputExclude>
1433-
<inputExclude>**/*.idea/**</inputExclude>
1434-
<inputExclude>**/target/**</inputExclude>
1435-
<inputExclude>**/nb-configuration.xml</inputExclude>
1436-
<inputExclude>**/faces-config.NavData</inputExclude>
1437-
<inputExclude>**/.project</inputExclude>
1438-
<inputExclude>**/.classpath</inputExclude>
1439-
<inputExclude>**/.settings/*</inputExclude>
1440-
<inputExclude>.github/linters/codespell.txt</inputExclude>
1441-
<inputExclude>**/org.mockito.plugins.MockMaker</inputExclude>
1442-
<inputExclude>.mvn/*</inputExclude>
1443-
<inputExclude>.jenkins_maven_args</inputExclude>
1444-
</inputExcludes>
1427+
<skip>${rat.skip}</skip>
14451428
</configuration>
14461429
</plugin>
14471430
<plugin>

0 commit comments

Comments
 (0)