Hi all!


I have two problems with the maven test plugin (maven-test-pugin-1.3) of the maven beta-10 binary distribution. Both problems occur on different projects.

First problem
-------------

File...... file:/Users/mpetersen/.maven/plugins/maven-test-plugin-1.3/
Element... junit
Line...... 64
Column.... 39
java.lang.NoClassDefFoundError
com.werken.werkz.UnattainableGoalException: Unable to obtain goal [site] -- file:/Users/mpetersen/.maven/plugins/maven-test-plugin-1.3/:64:39: <junit> java.lang.NoClassDefFoundError


I suppose, the org.apache.tools.ant.taskdefs.optional.junit.JUnitTask is not in the classpath. Does maven require an Ant installation somewhere?


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?


Thank you for your help,


-Mo.


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



Reply via email to