Skip to content

Remove redundant project.build.sourceEncoding from IT POMs - #349

Merged
gnodet merged 1 commit into
apache:masterfrom
gnodet:fix/remove-source-encoding-from-it-poms
Sep 25, 2026
Merged

gnodet merged 1 commit into
apache:masterfrom
gnodet:fix/remove-source-encoding-from-it-poms

Conversation

@gnodet

@gnodet gnodet commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

Summary

Remove the redundant <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> property from all IT pom.xml files under src/it/.

Rationale

Maven 4 defaults project.build.sourceEncoding to UTF-8 (MNG-7763). Since maven-clean-plugin 4.x requires Maven 4 as its minimum build version, declaring this property explicitly in IT POMs is redundant noise.

Changes

  • 14 files: the <properties> block contained only project.build.sourceEncoding — the entire block is removed.
  • 2 files (file-sets-absolute-paths/pom.xml, file-sets-relative-paths/child-b/pom.xml): the <properties> block contains other properties — only the sourceEncoding line is removed, the block is retained.

Co-authored-by: Claude Sonnet 4.6 noreply@anthropic.com

Maven 4 defaults project.build.sourceEncoding to UTF-8 (MNG-7763).
Since maven-clean-plugin 4.x requires Maven 4, this property is redundant
in all IT pom.xml files under src/it/.

Remove the property line and, where it was the only entry, the entire
<properties> block (14 files); in 2 files the block is retained as it
contains other properties.

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>

@gnodet-bot gnodet-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All 16 IT POMs that carried project.build.sourceEncoding=UTF-8 are covered — zero remaining after this PR. The two files with additional properties (file-sets-absolute-paths/pom.xml, file-sets-relative-paths/child-b/pom.xml) correctly retain their <properties> block with only the sourceEncoding line removed. The MNG-7763 claim holds: the plugin requires Maven 4.0.0-rc-6 minimum, and Maven 4 defaults project.build.sourceEncoding to UTF-8. Pure noise removal — nothing left to fix.

This review was generated by an AI agent, Hermès on behalf of @gnodet.

@gnodet
gnodet merged commit d56db4b into apache:master Sep 25, 2026
8 checks passed
@gnodet
gnodet deleted the fix/remove-source-encoding-from-it-poms branch September 25, 2026 20:40
@github-actions github-actions Bot added this to the 4.0.0-beta-3 milestone Sep 25, 2026
@github-actions

Copy link
Copy Markdown

@gnodet Please assign appropriate label to PR according to the type of change.

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.

4 participants