Sahil-Jaiswal-189 opened a new pull request, #14013:
URL: https://github.com/apache/maven/pull/14013

   Fixes #14000 by restoring API compatibility for Maven 4.0 plugins running on 
Maven 4.2.
   - Restore deprecated MojoExecution getters with their original signatures, 
adapting optional values to the legacy return types.
   - Support getter-based and noun-based implementations of Artifact, 
Dependency, DownloadedArtifact, and Exclusion, preserving existing Maven 
implementations.
   - Guard against recursive delegation when neither accessor is implemented, 
and preserve existing null and wildcard semantics.
   
   Verification
   Adds tests for both accessor styles, missing implementations, and legacy 
MojoExecution return values. Focused tests and style checks pass, and the 
unchanged Dependency plugin compiles against the updated API.
   
   To make clear that you license your contribution under
   the [Apache License Version 2.0, January 
2004](https://www.apache.org/licenses/LICENSE-2.0)
   check one of the following:
   
   - [x] 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)
   - [ ] I hereby declare that I have filed an [Apache Individual Contributor 
License Agreement](https://www.apache.org/licenses/icla.pdf).
   


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