charangowdamd-cmd opened a new pull request, #13584: URL: https://github.com/apache/maven/pull/13584
Fixes #13583 ### Description In Eclipse Sisu 1.1.0, JSR-330 bean visibility filtering was introduced. When core extensions are present: - Maven creates a container realm maven.ext with plexus.core as parent. - maven.ext imports each core extension realm's exported items. - However, the core extension realms never imported maven.ext. - When an extension's lifecycle participant executes, DefaultMaven sets the TCCL to the extension's ClassRealm. - Any subsequent programmatic or lazy component lookup/injection failed because Sisu filtered out all components belonging to maven.ext (all core components). ### Proposed Fix In MavenCli.setupContainerRealm, have each core extension realm import the container realm ( ealm.importFrom(extRealm, extRealm.getId())), establishing visibility from the extension realm to the container realm within Sisu without requiring changes to Sisu itself. Also added estCoreExtensionComponentVisibility in MavenCliTest to verify that components registered in the container realm are visible and resolvable when TCCL is set to the core extension realm. -- 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]
