You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Guillaume Ch <gc...@gmail.com> on 2016/12/20 16:52:23 UTC

Mojo + JUnit4 = MavenProject NPE

Hi all,

I've a issue with one of my mojo UT with JUnit4 (MojoRule )[1].
When my UT run, the MavenProject attribute is not initialized. But
bypassing this test and running my Mojo as a real plugin in a project work
fine.

Did someone have experimented a similar issue ?

Best regards

[1]
https://github.com/gchauvet/daemonize-maven-plugin/blob/master/src/test/java/io/zatarox/maven/daemonize/StartDaemonMojoTest.java#L34