abdulhannansyed548-cmd commented on issue #13989:
URL: https://github.com/apache/maven/issues/13989#issuecomment-7144733443

   Hi @gnodet ,
   
   I've been investigating and implementing the native maven-di discovery path 
for build extensions.
   
   The descriptor detection and discovery paths for pure V4 extensions and V4 
plugins declared with `<extensions>true</extensions>` are in place in my local 
implementation. I've also worked on discovery coordination, failure handling, 
and Mojo injector lifecycle.
   
   However, I encountered an architectural question around extension 
configuration.
   
   The configuration belongs to the individual project's build extension 
declaration, while native extension services are discovered into the shared 
root injector. `Session.getService(Class)` does not appear to provide project 
context during service resolution.
   
   Binding the configuration into the shared injector would therefore risk 
configuration leakage when multiple projects use the same extension with 
different configurations, particularly during parallel reactor builds.
   
   A project-scoped injector alone would not solve this unless Maven's 
service-resolution path also selects the appropriate project context.
   
   Could you clarify the intended scope of this issue?
   
   1. Is native discovery of V4 build extensions the primary goal, with 
project-specific extension service configuration outside the scope of this 
issue?
   2. Or should this issue also introduce project-aware service resolution for 
native extension services?
   3. Is the existing core-extension classloader lifecycle considered an 
acceptable precedent for build extensions?
   
   I'd like to align the implementation with the intended Maven 4/5 
architecture rather than introduce a project-scoping mechanism that conflicts 
with the existing DI design.
   
   Thanks!


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