artemmukhin opened a new pull request, #14175:
URL: https://github.com/apache/maven/pull/14175
Backport of #13942 to `maven-4.0.x`. Fixes #14174.
On `maven-4.0.x`, the released maven-compiler-plugin 4.0.0-beta-5 fails with
"Ambiguous bindings for key
ArtifactManager" (details and a reproducer in #14174). #13942 fixes this on
master. This PR is a cherry-pick of
`cc6ce0bfe8` (`git cherry-pick -x`), with no conflict.
Checked locally (JDK 21, macOS) on `468bda953a`, with and without this
change:
- The reproducer of #14174: without the change, BUILD FAILURE with
"Ambiguous bindings for key ArtifactManager";
with it, BUILD SUCCESS (`compiler:4.0.0-beta-5:compile` runs and compiles
the class).
- `impl/maven-di`: 49 tests pass (47 without the change; the 2 new tests
come from #13942).
- `impl/maven-core`: 769 tests pass, the same as without the change.
On my machine `impl/maven-impl` has 7 failing tests
(`DefaultModelResolverTest`, `DefaultModelBuilderTest`) with and
without the change, so they are not related to it. I did not run the
integration tests.
The change adds `Injector.bindSupplier(Class, Supplier, int)` and
`Injector.SESSION_SERVICE_PRIORITY` to the DI API
with `@since 4.2.0`, as on master. I kept the cherry-pick as it is; I can
change the tag to 4.0.0 if you prefer.
🤖 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]