Skip to content

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

Open
gnodet wants to merge 1 commit into
maven-3.10.xfrom
backport/12600-to-3.10.x
Open

[backport 3.10.x] Fix #12600: handle missing project index in forked executions#12923
gnodet wants to merge 1 commit into
maven-3.10.xfrom
backport/12600-to-3.10.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-3.10.x
  • Guards against NullPointerException from auto-unboxing when ProjectIndex.getIndices().get() returns null for a project not in the reactor
  • Throws descriptive LifecycleExecutionException instead
  • Test adapted for 3.10.x (Java 8 APIs, @Inject field injection)

Companion to #12918 (3.9.x backport).

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

Test adapted for 3.10.x (Java 8 APIs, @Inject field injection).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@gnodet gnodet added bug Something isn't working backport labels Aug 29, 2026
@gnodet gnodet added this to the 3.10.0 milestone Aug 29, 2026

@gnodet gnodet left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean backport of the #12600 NPE fix to maven-3.10.x. No issues found.

Backport observations:

  • Production code change (intInteger + null guard + descriptive exception) is identical across all four branches.
  • Test correctly adapted for 3.10.x APIs: @Inject field injection, 3-arg executeForkedExecutions, Collections.singletonList/emptyList for Java 8 compatibility.
  • Test differs from the 3.9.x backport (#12918) only in two comments describing the branch context.
  • All CI checks pass: build (macOS, ubuntu, windows), Jenkins, integration tests (JDK 8, 25, 26).

🔀 Backport Status

All maintenance branches are covered:

  • master#12911 (MERGED)
  • maven-4.0.x#12917 (MERGED)
  • maven-3.10.x#12923 (this PR)
  • maven-3.9.x#12918 (OPEN)

This review was generated by an AI agent and may contain inaccuracies. Please verify all suggestions before applying.

Claude Code on behalf of Guillaume Nodet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant