Hi,

Since I only needed to inject the Maven propject, and rather than use a stub, I decided to inject the Maven project manually in my mojo.

final MavenProject mvnProject = new MavenProject() ;
mvnProject.setFile( baseDir ) ;
this.rule.setVariableValueToObject( mojo, "project", mvnProject );

But I would have expected the lookupConfiguredMojo method to do this for me.
Until I know more about this, I will stick with my workaround.

Regards,

                 Vincent.

--
Vincent Zurczak

Phone: +33 (0) 6 40 28 86 57
Linagora: www.linagora.com <http://www.linagora.com/>

Twitter <https://twitter.com/VincentZurczak> Vincent Zurczak @ LinkedIn <http://fr.linkedin.com/pub/vincent-zurczak/18/b35/6a7> My Skype ID <callto://vincent.zurczak> My English blog <http://vzurczak.wordpress.com>

Reply via email to