gnodet opened a new pull request, #12920: URL: https://github.com/apache/maven/pull/12920
## Summary Backport of #12721 to `maven-4.0.x` for the rc-7 release. Fixes #10128. Direct CLI goals (`prefix:goal`) currently trigger missing-version resolution for every plugin in the project before Maven resolves the requested goal. This causes unnecessary downloads of plugins declared in `pluginManagement` or inactive profiles even when the goal does not use them. This change: - Skips project-wide plugin version resolution while calculating direct goal task segments - Limits project-wide resolution during execution planning to plans that contain lifecycle phases - Resolves a missing version lazily when a project-declared plugin is actually considered during prefix resolution Cherry-picked from 1b0a19e3ee (master). 🤖 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]
