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

   Backport of #14094 to `maven-4.0.x`.
   
   `DependencyResolver.flatten` keeps a node only when its scope is in 
`PathScope.dependencyScopes()`. The resolution scopes `main-compile`, 
`test-compile`, and `test-runtime` already include `system`, but 
`MAIN_COMPILE`, `TEST_COMPILE`, and `TEST_RUNTIME` omitted 
`DependencyScope.SYSTEM`, so a system-scoped jar was collected and then dropped.
   
   Changes:
   - Add `DependencyScope.SYSTEM` to `MAIN_COMPILE`, `TEST_COMPILE`, and 
`TEST_RUNTIME` path scopes
   - `MAIN_RUNTIME` still excludes system (intentional: matches `main-runtime` 
semantics)
   - Adds 
`DefaultDependencyResolverTest.flattenKeepsSystemScopeOnCompileAndTestPaths` 
(adapted for `maven-4.0.x`: tests for `applyDependencyManagement` are stripped 
as that method is a master-only addition not present in this branch)
   
   Cherry-picked from 9bf1ccaf7f9aa4ab78f27b364273d589d4c25d11.
   
   <!-- maven-backport-bot -->


-- 
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