This is an automated email from the ASF dual-hosted git repository. gnodet pushed a commit to branch workaround/disable-rat-scm-ignore-parsing in repository https://gitbox.apache.org/repos/asf/maven.git
commit e64791d3f52313dcf522b440a28205df2b4d5ff2 Author: Guillaume Nodet <[email protected]> AuthorDate: Fri Nov 13 14:29:27 2026 +0100 fix: disable RAT SCM ignore file parsing to avoid traversal hang 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 (e.g. 370k+ files across 27 worktrees), this causes RAT to hang during the discovery phase before the actual license scan even begins. Disable parseSCMIgnoresAsExcludes until the upstream fix lands: https://github.com/apache/creadur-rat/pull/773 Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]> --- pom.xml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pom.xml b/pom.xml index f4dac2c360..95d61e55ef 100644 --- a/pom.xml +++ b/pom.xml @@ -858,8 +858,15 @@ 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. --> + <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>
