Skip to content

[4.0.x] Fix #11796: Preserve default-phases bindings for standard lifecycle phases#12233

Merged
gnodet merged 1 commit into
apache:maven-4.0.xfrom
gnodet:cherry-pick-11889-to-4.0.x
Jun 4, 2026
Merged

[4.0.x] Fix #11796: Preserve default-phases bindings for standard lifecycle phases#12233
gnodet merged 1 commit into
apache:maven-4.0.xfrom
gnodet:cherry-pick-11889-to-4.0.x

Conversation

@gnodet
Copy link
Copy Markdown
Contributor

@gnodet gnodet commented Jun 4, 2026

Cherry-pick of #11889

…ycle phases (apache#11889)

When a custom lifecycle registered via components.xml maps plugin goals
to standard lifecycle phases (e.g., process-sources) via <default-phases>,
the LifecycleWrapperProvider now includes those entries as additional
phases in the wrapped API Lifecycle. The v3phases() method is overridden
to return only the custom lifecycle's own phases, ensuring computePhases()
is unaffected while getDefaultPhases() correctly picks up the bindings.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
@gnodet gnodet merged commit c951af7 into apache:maven-4.0.x Jun 4, 2026
1 check passed
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 4, 2026

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

@github-actions github-actions Bot added this to the 4.0.0-rc-6 milestone Jun 4, 2026
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