Skip to content

[MNG-8572] Support DI beans in build extensions #2274

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gnodet
Copy link
Contributor

@gnodet gnodet commented Apr 24, 2025

This PR adds support for using the Maven API DI system in build extensions (plugins with extensions=true). It enables build extensions to provide custom artifact type handlers using the new DI mechanism.

Key changes

  • Added an integration test that demonstrates a custom artifact type handler using the Maven API DI system in a build extension
  • The test shows how to implement a TypeProvider using @Named annotation
  • The annotation processor automatically generates the DI index file
  • The custom type handler is properly discovered and used during the build

This enhancement allows build extensions to leverage the new Maven API DI system, making it easier to create and maintain extensions that provide custom artifact type handlers.

Fixes: https://issues.apache.org/jira/browse/MNG-8572

@gnodet gnodet force-pushed the MNG-8572-di-type-handler branch 3 times, most recently from e4f688f to ea0e902 Compare May 1, 2025 06:36
@gnodet gnodet added this to the 4.0.0-rc-4 milestone May 9, 2025
This commit adds support for using the Maven API DI system in build extensions
(plugins with extensions=true). It enables build extensions to provide custom
artifact type handlers using the new DI mechanism.

Key changes:
- Added an integration test that demonstrates a custom artifact type handler
  using the Maven API DI system in a build extension
- The test shows how to implement a TypeProvider using @nAmed annotation
- The annotation processor automatically generates the DI index file
- The custom type handler is properly discovered and used during the build

This enhancement allows build extensions to leverage the new Maven API DI
system, making it easier to create and maintain extensions that provide
custom artifact type handlers.
@gnodet gnodet force-pushed the MNG-8572-di-type-handler branch from ea0e902 to f84c8c4 Compare May 9, 2025 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant