gnodet opened a new pull request, #684: URL: https://github.com/apache/maven-deploy-plugin/pull/684
## Summary - Cache the `projectsWithDeployExecution` list in the first reactor project's plugin context on first invocation - Simplify `allProjectsMarked()` to only check projects that actually have deploy executions - The list is invariant during a build — reduces O(N²) to O(N) total ## Problem `DeployMojo.allProjectsMarked()` calls `hasDeployExecution()` for every reactor project on every module invocation. `hasDeployExecution()` calls `getPluginsAsMap()` for each project. In a 4383-module reactor, this produces O(N²) evaluations. Same pattern as the install plugin — both discovered via JFR profiling of a large Maven 4 reactor build. ## Test plan - [x] All 21 existing tests pass - [ ] Verify on a large multi-module reactor build 🤖 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]
