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

   Backport of #13988 to `maven-4.0.x`.
   
   The dependency management of an imported BOM was cached under its 
groupId:artifactId:version and the `import` tag, whatever the location tracking 
of the build that imported it. When the BOM was first imported by a model built 
without location tracking (e.g. while reading the POM of a build extension), a 
later project build with location tracking reused that copy, and the managed 
dependencies it contributed had no `InputLocation`.
   
   Cache the dependency management of builds with location tracking under a 
separate `import-with-locations` tag, so they never pick up a copy without 
locations.
   
   Cherry-picked from 171a3f4e74f027672e3aae28e30f0f62333e9d31, with the test 
adapted: moved from the root `maven-model-builder/` path (3.10.x layout) to 
`compat/maven-model-builder/` (4.0.x/master layout).
   
   Fixes #13985
   
   ---
   
   - [x] I hereby declare this contribution to be licensed under the [Apache 
License Version 2.0, January 2004](https://www.apache.org/licenses/LICENSE-2.0)
   


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