You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "slawekjaranowski (via GitHub)" <gi...@apache.org> on 2026/08/02 16:38:56 UTC

[PR] Add validator for component requirements in generated plugin descriptor [maven-plugin-tools]

slawekjaranowski opened a new pull request, #1145:
URL: https://github.com/apache/maven-plugin-tools/pull/1145

   ### What changed
   - Added `ValidateComponentRequirement` to scan generated `PluginDescriptor` mojos for Plexus component requirements (`@Component`-mapped requirements).
   - Extended integration test verification (`java-basic-annotations/verify.groovy`) to assert the expected warning messages in `build.log`.
   
   ### Why
   - `@Component` usage in mojos is deprecated, but generation currently gives no visible signal when `<requirement>` entries are produced.
   - A warning at descriptor generation time helps plugin authors migrate toward JSR 330 injection and avoid hidden legacy patterns.
   
   Fixes #1138
   
   


-- 
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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Add validator for component requirements in generated plugin descriptor [maven-plugin-tools]

Posted by "slawekjaranowski (via GitHub)" <gi...@apache.org>.
slawekjaranowski merged PR #1145:
URL: https://github.com/apache/maven-plugin-tools/pull/1145


-- 
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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org