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

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


The following commit(s) were added to refs/heads/maven-3.10.x by this push:
     new 1210190f4e [Backport maven-3.10.x] #13986: Disable RAT SCM ignore file 
parsing to avoid traversal hang (#14107)
1210190f4e is described below

commit 1210190f4e1b72fd1b2cebb3a10f087c817844ae
Author: Guillaume Nodet <[email protected]>
AuthorDate: Mon Nov 23 17:40:38 2026 +0100

    [Backport maven-3.10.x] #13986: Disable RAT SCM ignore file parsing to 
avoid traversal hang (#14107)
    
    Disable parseSCMIgnoresAsExcludes and add **/.gitignore to explicit
    excludes to work around a performance bug in RAT 0.18.
    
    RAT 0.18's SCM ignore file discovery (parseSCMIgnoresAsExcludes)
    recursively walks the entire directory tree looking for .gitignore
    files without respecting any exclusion patterns. When hidden
    directories like .claude/worktrees/ contain large git worktree trees,
    this causes RAT to hang during the discovery phase.
    
    Cherry-picked from 585b03dd76e66eb18476c19c916af8df11111f39
---
 pom.xml | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/pom.xml b/pom.xml
index 273e6f136b..c899a810d7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -638,7 +638,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/test/resources*/**</exclude>
               <exclude>src/test/projects/**</exclude>

Reply via email to