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

   ## Summary
   
   Backport of #12687 to `maven-4.0.x`.
   
   - Split modello plugin executions in `maven-api-settings` and 
`maven-api-toolchain` so the `velocity` goal (Java source generation) runs at 
`generate-sources` instead of `generate-resources`, while `xdoc`/`xsd` 
(documentation) remain at `generate-resources`
   - Fixes a race condition in the concurrent builder (`-b concurrent`) where 
`COMPILE` could start before `velocity` finished generating Java source files, 
causing `"package does not exist"` compilation errors
   
   ## Details
   
   In Maven 4's graph lifecycle model, `SOURCES` and `RESOURCES` are parallel 
siblings under `BUILD`, and `COMPILE` is ordered `after(SOURCES)` but **not** 
`after(RESOURCES)`. The modello `velocity` goal generates Java source files but 
was bound to `generate-resources` (→ `RESOURCES` phase), creating a race where 
`COMPILE` could start before source generation finished.
   
   Cherry-picked cleanly from master (852e66a).
   
   ## Test plan
   
   - [ ] CI passes on `maven-4.0.x`
   
   
   🤖 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