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

   Port of #13988 (fixed on `maven-3.10.x`) to `master`.
   
   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.
   
   Applied to `compat/maven-model-builder/` (the compat layer on master, which 
carries the same code as 3.10.x and is affected). The `impl/maven-impl` stack 
on master is not affected — it always records locations unconditionally.
   
   See also: #14117 (backport to `maven-4.0.x`)
   
   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