gnodet opened a new pull request, #11820:
URL: https://github.com/apache/maven/pull/11820

   ## Summary
   
   - Fixes a crash (`Step $plan$ not found`) when using `--builder concurrent` 
on projects where a reactor module is also used as a build plugin (e.g., Apache 
CXF's `cxf-codegen-plugin`)
   - Moves reactor plugin ordering logic from `calculateLifecycleMappings()` to 
`buildInitialPlan()`, where PLAN/READY steps already exist
   - Simplifies plugin resolution to only eagerly resolve non-reactor plugins
   
   ## Details
   
   The root cause is that `calculateLifecycleMappings()` calls 
`plan.requiredStep(project, PLAN)` to set up ordering between reactor plugins 
and their consuming projects, but the PLAN steps are only created later in 
`buildInitialPlan()`. Moving this logic to after the PLAN/READY step creation 
fixes the crash.
   
   Tested successfully on Apache CXF, Maven Resolver, Commons Lang, and Maven 
Surefire with `-T4 --builder concurrent`.
   
   ## Test plan
   
   - [x] Existing `BuildPlanCreatorTest` tests pass
   - [x] Verified on Apache CXF (`mvn verify -T4 --builder concurrent`) — 
previously crashed, now builds successfully
   - [x] Verified on Maven Resolver, Commons Lang, Maven Surefire with 
concurrent builder
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to