Assuming you’re using Maven 3.1.1 or later then yes, that should work. -- Cheers, Stuart
On Monday, 16 March 2015 at 18:09, Cristiano Gavião wrote: > Hello, > > I've create a mojo and set it to use sisu based injection. > > I added to this mojo a constructor like this: > > @Inject > public MyMojo( RuntimeInformation runtimeInformation, > MavenProjectHelper projectHelper, BuildContext > buildContextr) { > > this.buildContext = buildContext; > this.runtimeInformation = runtimeInformation; > this.projectHelper = projectHelper; > } > > and it worked properly. > > Now suppose that I have a pojo component annotated with a @Named > annotation and it should be consumed by the mojo: > > @Named > public MyPojo{ > > } > > Is it possible to inject objects from the maven classes into an instance > of this pojo as I did with the mojo above? > > thanks, > > Cristiano