Skip to content

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

Draft
gnodet wants to merge 1 commit into
apache:masterfrom
gnodet:fix/remove-redundant-source-encoding-from-its
Draft

gnodet wants to merge 1 commit into
apache:masterfrom
gnodet:fix/remove-redundant-source-encoding-from-its

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

Since MNG-7763, Maven 4 defaults project.build.sourceEncoding to UTF-8 when not
explicitly set. Since maven-resources-plugin 4.x requires Maven 4, explicitly
declaring this property in IT POMs is redundant noise. Empty <properties> blocks
left after the removal are also cleaned up.

Files changed

  • src/it/MRESOURCES-110/pom.xml — encoding line removed (block keeps replaceThis property)
  • src/it/MRESOURCES-171/pom.xml — encoding line and empty <properties> block removed
  • src/it/MRESOURCES-231/pom.xml — encoding line and empty <properties> block removed
  • src/it/MRESOURCES-257/pom.xml — encoding line and empty <properties> block removed
  • src/it/gh-312/pom.xml — encoding line removed (block keeps compiler source/target properties)
  • src/it/include-git-ignore/pom.xml — encoding line and empty <properties> block removed

Note: src/it/MRESOURCES-231/src/main/resources/test.txt references
${project.build.sourceEncoding} as a filter expression under test — it is intentionally left
unchanged, and will still resolve correctly since Maven 4 provides the default.


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

maven-resources-plugin 4.x requires Maven 4, which defaults
project.build.sourceEncoding to UTF-8 (MNG-7763). The explicit
declaration in IT pom.xml files is therefore redundant and can
be removed. Empty <properties> blocks are also removed.

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

1 participant