maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Tran <dant...@gmail.com>
Subject Re: Maven Plugin and JSR330
Date Wed, 31 Aug 2016 15:59:31 GMT
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.broyer@gmail.com> wrote:

> On Wed, Aug 31, 2016 at 8:43 AM Dan Tran <dantran@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.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message