You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "gnodet (via GitHub)" <gi...@apache.org> on 2026/09/07 19:39:13 UTC

[PR] [Backport 4.0.x] Fix filterByScope to expand lifecycle scopes for build ordering [maven]

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

   Backport of #12680 to `maven-4.0.x`.
   
   ## Summary
   
   The concurrent builder's `filterByScope` used exact string matching between the lifecycle dependency scope (e.g. `"compile"`) and the declared artifact scope in the model. This meant a `provided`-scope reactor dependency was **not** ordered before the consumer's compile phase, since `"compile" != "provided"`.
   
   ### Fix
   
   Expand the lifecycle scope to match all artifact scopes that contribute to it for build ordering:
   
   - `"compile"` → compile, provided, system (+ null defaults to compile)
   - `"runtime"` → compile, runtime (+ null)
   - `"test"` → all scopes
   - `"test-only"` → test only
   
   Cherry-picked cleanly from master (`7f5d22e9ee`).


-- 
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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [Backport 4.0.x] Fix filterByScope to expand lifecycle scopes for build ordering [maven]

Posted by "gnodet (via GitHub)" <gi...@apache.org>.
gnodet merged PR #13070:
URL: https://github.com/apache/maven/pull/13070


-- 
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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org