codewithsinchana opened a new pull request, #13925: URL: https://github.com/apache/maven/pull/13925
This PR deprecates the `MojoExecutionScoped` annotation in `maven-api-di` as proposed in issue #13839. The annotation is currently unfinished, as its scope binding is not registered in the Maven 4 dependency injection container and it does not support proxy creation. This change adds the `@Deprecated` annotation and updates the Javadoc to explain its limitations and recommend alternatives, including `@SessionScoped` for session-scoped components, direct `@Inject` injection for Maven 4 plugin execution context, and the Maven 3 `MojoExecutionScoped` annotation for legacy extensions. The existing annotation API remains unchanged. - [ ] 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]
