Re: Maven Plugin Development and the @Produces

2018-07-17 Thread Romain Manni-Bucau
Inject a component, set the current mojo and just "get" it when you need from the component you can inject? Romain Manni-Bucau @rmannibucau | Blog | Old Blog | Github

Re: Maven Plugin Development and the @Produces

2018-07-17 Thread exabrial
Unfortunately, my module is not being called, so I don't think it's supported. Is there *ANY* way to inject Configuration parameters into sub-modules? ANY possible way? On 2018/07/16 19:53:33, Romain Manni-Bucau wrote: > Maven tries to limit that to jsr330 usage hoping it stays portable ( > h

Re: Maven Plugin Development and the @Produces

2018-07-16 Thread Romain Manni-Bucau
Maven tries to limit that to jsr330 usage hoping it stays portable ( https://maven.apache.org/maven-jsr330.html). Probably just implement the api and register the class in guice/sisu or plexus (old way). Will avoid some headaches. Sisu-guice (the guice impl of maven) should support defining a name

Re: Maven Plugin Development and the @Produces

2018-07-16 Thread exabrial
I tried the @Provides annotation but it could not get it to supply a value. Do you have an example? On 2018/07/12 06:33:19, Romain Manni-Bucau wrote: > Hi Jonathan, > > you can use Guice in plexus components but not CDI. the cdi-api.jar is a > transitive leaked dependency and almost nothing is

Re: Maven Plugin Development and the @Produces

2018-07-11 Thread Romain Manni-Bucau
Hi Jonathan, you can use Guice in plexus components but not CDI. the cdi-api.jar is a transitive leaked dependency and almost nothing is supported in current maven (there are several threads to drop it). To be concrete, only @Typed is used. Romain Manni-Bucau @rmannibucau

Maven Plugin Development and the @Produces

2018-07-11 Thread exabrial
Hey Guys, I'm developing my first maven plugin. I was curious, is there any way to use the @javax.enterprise.inject.Produces annotation? Here's why I ask. I have my main mojo, but it is composed of several dependencies that are @Inject'd into the mojo. These submodules ('components') may have