Howdy, I'd perso deprecate the [1] and rely only on JSR330.
Thanks T On Mon, Jun 17, 2024 at 1:26 PM Konrad Windszus <k...@apache.org> wrote: > > Hi, > I am wondering about the best practice to inject Sisu/JSR330 components > into Mojos. > We have two different possibilities: > > 1. Via annotation org.apache.maven.plugins.annotations.Component [1] which > makes the referenced Sisu component also appear in the requirements section > of the plugin descriptor [3]. > 2. Via the JSR330 Inject annotation > > For the former I couldn’t find a way to use multi bindings [2] but the > latter does not affect the plugin descriptor [3], therefore error handling > might be inferior. > Any opinions/thoughts? > > Thanks in advance, > Konrad > > [1] - > https://maven.apache.org/plugin-tools/maven-plugin-annotations/apidocs/org/apache/maven/plugins/annotations/Component.html > [2] - https://github.com/google/guice/wiki/Multibindings > [3] - > https://maven.apache.org/ref/3.9.8/maven-plugin-api/plugin.html#class_requirement > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org > For additional commands, e-mail: dev-h...@maven.apache.org > >