You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Mirko Novakovic <mi...@provinzial.com> on 2003/07/23 13:35:26 UTC
Problems with test
Hi,
I've problems with the test plugin. Either test:compile or test:test
fail with an exception:
BUILD FAILED
File......
file:/C:/WINNT/Profiles/xd99304/.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
[test:test-res
ources] --
file:/C:/WINNT/Profiles/xd99304/.maven/plugins/maven-test-plugin-1.3/
:299:11: <resources:copy> java.lang.NullPointerException
at com.werken.werkz.Goal.fire(Goal.java:646)
at com.werken.werkz.Goal.attain(Goal.java:575)
at com.werken.werkz.Goal.attainPrecursors(Goal.java:488)
at com.werken.werkz.Goal.attain(Goal.java:573)
at com.werken.werkz.Goal.attainPrecursors(Goal.java:488)
at com.werken.werkz.Goal.attain(Goal.java:573)
at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:
434)
at org.apache.maven.MavenSession.attainGoals(MavenSession.java:348)
at org.apache.maven.cli.App.doMain(App.java:525)
at org.apache.maven.cli.App.main(App.java:1088)
at java.lang.reflect.Method.invoke(Native Method)
at com.werken.forehead.Forehead.run(Forehead.java:543)
at com.werken.forehead.Forehead.main(Forehead.java:573)
Any ideas?
Thanks.
Mirko
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Problems with test
Posted by Mirko Novakovic <mi...@provinzial.com>.
When I looked into the plugin.jelly file of maven-test-plugin-1.3, I
tried out to add a unit test section to my project.xml. After adding
<unitTest>
<includes>
<include>**/Tests.java</include>
</includes>
</unitTest>
its working without exception...
Mirko Novakovic wrote:
> Hi,
>
> I've problems with the test plugin. Either test:compile or test:test
> fail with an exception:
> BUILD FAILED
> File......
> file:/C:/WINNT/Profiles/xd99304/.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
> [test:test-res
> ources] --
> file:/C:/WINNT/Profiles/xd99304/.maven/plugins/maven-test-plugin-1.3/
> :299:11: <resources:copy> java.lang.NullPointerException
> at com.werken.werkz.Goal.fire(Goal.java:646)
> at com.werken.werkz.Goal.attain(Goal.java:575)
> at com.werken.werkz.Goal.attainPrecursors(Goal.java:488)
> at com.werken.werkz.Goal.attain(Goal.java:573)
> at com.werken.werkz.Goal.attainPrecursors(Goal.java:488)
> at com.werken.werkz.Goal.attain(Goal.java:573)
> at
> org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:
> 434)
> at
> org.apache.maven.MavenSession.attainGoals(MavenSession.java:348)
> at org.apache.maven.cli.App.doMain(App.java:525)
> at org.apache.maven.cli.App.main(App.java:1088)
> at java.lang.reflect.Method.invoke(Native Method)
> at com.werken.forehead.Forehead.run(Forehead.java:543)
> at com.werken.forehead.Forehead.main(Forehead.java:573)
>
> Any ideas?
>
> Thanks.
> Mirko
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Problems with test
Posted by di...@multitask.com.au.
I recently fixed this in the java plugin. It looks like it's an issue for
test too.
Add a <build/> element to your POM and I think that will fix it.
--
dIon Gillard, Multitask Consulting
Blog: http://blogs.codehaus.org/people/dion/
"Mirko Novakovic" <mi...@provinzial.com> wrote on 23/07/2003
09:35:26 PM:
> Hi,
>
> I've problems with the test plugin. Either test:compile or test:test
> fail with an exception:
> BUILD FAILED
> File......
> file:/C:/WINNT/Profiles/xd99304/.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
> [test:test-res
> ources] --
> file:/C:/WINNT/Profiles/xd99304/.maven/plugins/maven-test-plugin-1.3/
> :299:11: <resources:copy> java.lang.NullPointerException
> at com.werken.werkz.Goal.fire(Goal.java:646)
> at com.werken.werkz.Goal.attain(Goal.java:575)
> at com.werken.werkz.Goal.attainPrecursors(Goal.java:488)
> at com.werken.werkz.Goal.attain(Goal.java:573)
> at com.werken.werkz.Goal.attainPrecursors(Goal.java:488)
> at com.werken.werkz.Goal.attain(Goal.java:573)
> at
> org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:
> 434)
> at
org.apache.maven.MavenSession.attainGoals(MavenSession.java:348)
> at org.apache.maven.cli.App.doMain(App.java:525)
> at org.apache.maven.cli.App.main(App.java:1088)
> at java.lang.reflect.Method.invoke(Native Method)
> at com.werken.forehead.Forehead.run(Forehead.java:543)
> at com.werken.forehead.Forehead.main(Forehead.java:573)
>
> Any ideas?
>
> Thanks.
> Mirko
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>