creadur-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: svn commit: r1617370 - in /creadur/rat/trunk: ./ apache-rat-plugin/ apache-rat-plugin/src/main/java/org/apache/rat/mp/ apache-rat-plugin/src/test/java/org/apache/rat/mp/
Date Tue, 12 Aug 2014 00:40:57 GMT
On 11 August 2014 22:40,  <pottlinger@apache.org> 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;
>
>         /**


[]

Mime
View raw message