On 11 August 2014 22:40,  <[email protected]> wrote:
> Author: pottlinger
> Date: Mon Aug 11 21:40:26 2014
> New Revision: 1617370
>
> URL: http://svn.apache.org/r1617370
> Log:
> Refactoring mojo tests.
>
> -Replaced the way the MavenProject injected to a non-deprecated way (to get 
> rid of the warning during the build).
> -Updated mavenInvokerPluginVersion and extracted it as a pom-property.
> -Extracted some RAT mojo integration test methods into a separate 
> RatTestHelpers in order to find integration tests more easily after RAT-168 
> and the NPE when trying to forge 0.11.
>

[]

> ==============================================================================
> --- 
> creadur/rat/trunk/apache-rat-plugin/src/main/java/org/apache/rat/mp/AbstractRatMojo.java
>  (original)
> +++ 
> creadur/rat/trunk/apache-rat-plugin/src/main/java/org/apache/rat/mp/AbstractRatMojo.java
>  Mon Aug 11 21:40:26 2014
> @@ -198,9 +198,9 @@ public abstract class AbstractRatMojo ex
>         private boolean excludeSubProjects;
>
>         /**
> -        * Holds the maven-internal project to allow resolution of artifact 
> properties during mojo runs.
> -        */
> -       @Component
> +    * Holds the maven-internal project to allow resolution of artifact 
> properties during mojo runs.
> +    */
> +       @Parameter(property = "project", required = true, readonly = true)

So the NPE was caused by using

          @Parameter(name = "project",

i.e. the wrong attribute name?

>         private MavenProject project;
>
>         /**


[]

Reply via email to