Skip to content

Update RAT excludes file path to work across all submodules - #124

Merged
tzaeschke merged 1 commit into
mainfrom
update-poms
May 12, 2026
Merged

Update RAT excludes file path to work across all submodules#124
tzaeschke merged 1 commit into
mainfrom
update-poms

Conversation

@clr-apache

Copy link
Copy Markdown
Contributor

Use ${maven.multiModuleProjectDirectory} to reference .rat-excludes from the project root so all submodules pick up the excludes configuration, not just the root module.

Summary

The .rat-excludes file at the project root was only being picked up by
the root module. Submodules were ignoring it because the relative path
.rat-excludes resolved to each submodule's own basedir, where no such
file exists.

Fix by using ${maven.multiModuleProjectDirectory} to reference the
excludes file from the project root in both pom.xml and
parent-pom/pom.xml, so all submodules consistently use the same
excludes list.

This ensures the META-INF/services/* and other exclusions added in
#123 are honoured when running apache-rat:check across all modules.

Use \${maven.multiModuleProjectDirectory} to reference .rat-excludes from
the project root so all submodules pick up the excludes configuration,
not just the root module.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

@tzaeschke
tzaeschke merged commit 01363c6 into main May 12, 2026
13 of 14 checks passed
@tzaeschke
tzaeschke deleted the update-poms branch May 12, 2026 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants