Skip to content

[backport 4.0.x] Fix #12600: handle missing project index in forked executions - #12917

Merged
gnodet merged 1 commit into
maven-4.0.xfrom
backport/12600-to-4.0.x
Aug 29, 2026
Merged

[backport 4.0.x] Fix #12600: handle missing project index in forked executions#12917
gnodet merged 1 commit into
maven-4.0.xfrom
backport/12600-to-4.0.x

Conversation

@gnodet

@gnodet gnodet commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Backport of Handle missing project index in forked executions #12911 (merged to master) to maven-4.0.x
  • Guards against NullPointerException from auto-unboxing when ProjectIndex.getIndices().get() returns null for a project not in the reactor
  • Throws descriptive LifecycleExecutionException instead

Clean cherry-pick — no conflicts.

* fix: handle missing forked project index

Signed-off-by: ulofiai <309826581+ulofiai@users.noreply.github.com>

* Add test for forked execution project index null guard

Test originally written for PR #12907 (our parallel fix for #12600).
Contributed here since this PR has the better exception constructor
(includes MojoExecution and MavenProject context).

See: #12907

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Signed-off-by: ulofiai <309826581+ulofiai@users.noreply.github.com>
Co-authored-by: ulofiai <309826581+ulofiai@users.noreply.github.com>
Co-authored-by: Guillaume Nodet <gnodet@gmail.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
@gnodet gnodet added this to the 4.0.0-rc-7 milestone Aug 29, 2026
@gnodet gnodet added bug Something isn't working backport-to-4.0.x labels Aug 29, 2026
@gnodet
gnodet merged commit 3591db2 into maven-4.0.x Aug 29, 2026
24 checks passed
@gnodet
gnodet deleted the backport/12600-to-4.0.x branch August 29, 2026 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-to-4.0.x bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants