On Wednesday 03 Sep 2003 19:42, Moritz Petersen wrote:
> Second problem
> --------------
>
> BUILD FAILED
> File...... file:/Users/mpetersen/.maven/plugins/maven-test-plugin-1.3/
> Element... resources:copy
> Line...... 299
> Column.... 11
> java.lang.NullPointerException
> com.werken.werkz.UnattainableGoalException: Unable to obtain goal
> [site] --
> file:/Users/mpetersen/.maven/plugins/maven-test-plugin-1.3/:299:11:
> <resources:copy> java.lang.NullPointerException
>
> The jelly code in the plugin.jelly is:
>
>      <j:if test="${unitTestSourcesPresent == 'true'}">
>        <j:if test="${!pom.build.unitTest.resources.isEmpty()}"> <!-- NPE
> here! -->
>          <resources:copy
>            resources="${pom.build.unitTest.resources}"
>            todir="${maven.test.dest}"
>          />
>        </j:if>
>      </j:if>
>
> So, as you can imagine, I don't have any resources specified in my
> project.xml descriptor... What am I doing wrong here?

Not doing anything wrong at all (IMHO) ... its (IMHO again) a bug in the test 
plugin - it should check if the unitTest is empty before doing the check for 
resources. The workaround is to just specify an empty <unitTest> block in the 
project.xml.


-- 
Andy


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to