Hi Dan, Constructor injection (and component injection) is working for me with Maven 3.3.9 if I follow the example in http://maven.apache.org/maven-jsr330.html
Is your plugin code available somewhere? PS. at the moment Maven doesn’t enable container support for JSR-250 lifecycle, but it is implemented by Sisu under a feature flag: https://github.com/eclipse/sisu.plexus/blob/releases/0.3.3/org.eclipse.sisu.plexus/src/org/codehaus/plexus/ContainerConfiguration.java#L62 -- Cheers, Stuart On Wednesday, 31 August 2016 at 16:59, Dan Tran wrote: > Hi Thomas, > > You are right!!! looking for how to fix this... > > The only thing working for me is field injection at MOJO. event The > constructor injection ( as documented) at MOJO is not. > > Thanks > > -Dan > > On Wed, Aug 31, 2016 at 1:20 AM, Thomas Broyer <t.bro...@gmail.com > (mailto:t.bro...@gmail.com)> wrote: > > > On Wed, Aug 31, 2016 at 8:43 AM Dan Tran <dant...@gmail.com > > (mailto:dant...@gmail.com)> wrote: > > > > > Hi > > > > > > I have a need to inject my jsr330 component into my plugins[1] and I > > > found 2 issues > > > > > > 1. @Inject under MOJO works, but my singleton component @PreDestroy never > > > got called > > > > > > > > > @PreDestroy is not part of JSR 330, it's a CDI thing, so no wonder it's not > > called. > > > > >