Skip to content

Remove deprecated overwrite parameter from maven-resources-plugin#3043

Merged
eamonnmcmanus merged 1 commit into
google:mainfrom
Marcono1234:marcono1234/maven-resources-plugin-deprecated-overwrite
Jun 25, 2026
Merged

Remove deprecated overwrite parameter from maven-resources-plugin#3043
eamonnmcmanus merged 1 commit into
google:mainfrom
Marcono1234:marcono1234/maven-resources-plugin-deprecated-overwrite

Conversation

@Marcono1234

Copy link
Copy Markdown
Contributor

Purpose

Removes a deprecated Maven plugin parameter, which is causing a warning. For example:

[INFO] --- resources:3.5.0:copy-resources (pre-obfuscate-class) @ gson ---
[WARNING] Parameter 'overwrite' is deprecated: Use changeDetection instead.

Description

In version 3.5.0 of the maven-resources-plugin the parameter was deprecated and replaced with the new changeDetection parameter. However, the default of that new parameter is "content" which replaces the file if the contents changed, which is the desired behavior here, so that default can be omitted.
See also https://maven.apache.org/plugins/maven-resources-plugin/copy-resources-mojo.html#changeDetection

In version 3.5.0 of the maven-resources-plugin the parameter was
deprecated and replaced with the new `changeDetection` parameter.
However, the default of that new parameter is "content" which replaces
the file if the contents changed, which is the desired behavior here,
so that default can be omitted.
See also https://maven.apache.org/plugins/maven-resources-plugin/copy-resources-mojo.html#changeDetection
@eamonnmcmanus eamonnmcmanus merged commit c8a513b into google:main Jun 25, 2026
21 checks passed
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