Skip to content

[maven-4.0.x] fix: restore buildConfiguration() callback in deprecated build() methods#12094

Merged
gnodet merged 1 commit into
maven-4.0.xfrom
backport-11869-to-4.0.x
May 19, 2026
Merged

[maven-4.0.x] fix: restore buildConfiguration() callback in deprecated build() methods#12094
gnodet merged 1 commit into
maven-4.0.xfrom
backport-11869-to-4.0.x

Conversation

@gnodet
Copy link
Copy Markdown
Contributor

@gnodet gnodet commented May 19, 2026

Backport of #11869 to maven-4.0.x.

Restores the buildConfiguration() callback in deprecated PluginDescriptorBuilder.build() methods, ensuring backwards compatibility for plugins that override this method.

Claude Code on behalf of Guillaume Nodet

The MNG-7947 refactoring changed the deprecated build(Reader, String) and
build(InputStream, String) methods to delegate to the new
build(ReaderSupplier/StreamSupplier, String) methods, which bypassed the
overridable buildConfiguration() method. This broke subclasses (such as
EnhancedPluginDescriptorBuilder in maven-plugin-tools) that override
buildConfiguration() to intercept the parsed configuration.

Restore the buildConfiguration() callback in the legacy code path while
still supporting PLUGIN 2.0.0 namespace detection.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
gnodet added a commit that referenced this pull request May 19, 2026
@gnodet gnodet added this to the 4.0.0-rc-6 milestone May 19, 2026
@gnodet gnodet merged commit be7d73b into maven-4.0.x May 19, 2026
24 checks passed
@gnodet gnodet deleted the backport-11869-to-4.0.x branch May 19, 2026 13:33
@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.

2 participants