This is an automated email from the ASF dual-hosted git repository.

gnodet pushed a commit to branch maven-4.0.x
in repository https://gitbox.apache.org/repos/asf/maven.git


The following commit(s) were added to refs/heads/maven-4.0.x by this push:
     new 1af6133d82 [backport maven-4.0.x] #13986: Disable RAT SCM ignore file 
parsing to avoid traversal hang (#14106)
1af6133d82 is described below

commit 1af6133d8215d095ec1d7e9a7d742533a46660bd
Author: Guillaume Nodet <[email protected]>
AuthorDate: Mon Nov 23 17:41:11 2026 +0100

    [backport maven-4.0.x] #13986: Disable RAT SCM ignore file parsing to avoid 
traversal hang (#14106)
---
 pom.xml | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/pom.xml b/pom.xml
index 922c33d8ed..aaa356f7fc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -866,8 +866,20 @@ under the License.
           <groupId>org.apache.rat</groupId>
           <artifactId>apache-rat-plugin</artifactId>
           <configuration>
+            <!-- Workaround for https://github.com/apache/creadur-rat/pull/773:
+                 The SCM ignore file discovery walk traverses ALL directories
+                 (including hidden ones like .claude/ and .worktrees/) without
+                 respecting exclusion patterns, causing RAT to hang when large
+                 git worktree trees exist under hidden directories.
+                 Note: parseSCMIgnoresAsExcludes is deprecated in RAT 0.18, but
+                 the new API (inputExcludeStds) excludes path matchers only —
+                 NOT file processors — so it cannot suppress the traversal.
+                 This workaround will be removed once a RAT release includes 
the
+                 upstream fix from creadur-rat#773. -->
+            <parseSCMIgnoresAsExcludes>false</parseSCMIgnoresAsExcludes>
             <inputExcludes>
               <exclude>Jenkinsfile</exclude>
+              <exclude>**/.gitignore</exclude>
               <exclude>**/.gitattributes</exclude>
               <exclude>src/main/resources/META-INF/services/**</exclude>
               <exclude>src/test/resources*/**</exclude>

Reply via email to