You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Timothy Reilly <tr...@prolifics.com> on 2007/06/28 05:29:35 UTC

Surefire null pointer exception

I am having a couple of issues.
 
1) I am getting a NPE from the Surefire plugin. I have no test cases atm
- so it threw the NPE. Seems like a bug though. 
 
[INFO] [surefire:test]
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] null
[INFO]
------------------------------------------------------------------------
[INFO] Trace
java.lang.NullPointerException
        at
org.apache.maven.plugin.surefire.SurefirePlugin.constructSurefireBoo
er(SurefirePlugin.java:594)
        at
org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlug
n.java:391)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlug
nManager.java:443)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Def
ultLifecycleExecutor.java:539)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithL
fecycle(DefaultLifecycleExecutor.java:480)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defa
ltLifecycleExecutor.java:459)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHa
dleFailures(DefaultLifecycleExecutor.java:311)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegme
ts(DefaultLifecycleExecutor.java:278)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultL
fecycleExecutor.java:143)
        at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
java:64)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:615)
        at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430
 
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Wed Jun 27 23:16:22 EDT 2007
[INFO] Final Memory: 5M/23M
[INFO]
------------------------------------------------------------------------
 
Anyone else experience this? To work around it for now I have create a
test case and it runs.

But then...
 
2) mvn -Dmaven-skip.test=true install  seems to have no effect. I saw a
post about this from March, but did not see a resolution?
 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Surefire null pointer exception

Posted by Timothy Reilly <tr...@prolifics.com>.
I wrote:

Pls, disregard on both counts...

> I am having a couple of issues.
>  
> 1) I am getting a NPE from the Surefire plugin. I have no 
> test cases atm
> - so it threw the NPE. Seems like a bug though. 
>  
Now I deleted my placeholder testcase and everything still runs fine,
So I can't re-create the npe.

> 
> But then...
>  
> 2) mvn -Dmaven-skip.test=true install  seems to have no 
> effect. I saw a post about this from March, but did not see a 
> resolution?

Obviously a type-Oh!! on my part.
The correct property seems to be: -Dmaven.test.skip=true

Sorry for the noise.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org