Re: Injection using Sisu doubt

2015-03-17 Thread Cristiano Gavião
Hi Stuart, Thanks again for your prompt help. But both projects have sisu-maven-plugin properly set and the generation of index files are working well. But I think I found where the issue could be. This morning I decided to debug the build of one project in the workspace that uses my plugin

Re: Injection using Sisu doubt

2015-03-16 Thread Cristiano Gavião
Thanks Stuart, I tried it and it worked when the MyPojo class was in the same jar as MyMojo. But when I moved MyPojo class to another jar and add that jar as a dependency of the plugin, I got the following error: [WARNING] Error injecting: org.c4biz.tools.build.MyMojo,

Injection using Sisu doubt

2015-03-16 Thread Cristiano Gavião
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) {

Re: Injection using Sisu doubt

2015-03-16 Thread Stuart McCulloch
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