Skip to content

NPE if no systemproperties set #4

reynders opened this Issue May 24, 2012 · 1 comment

2 participants


First of all, what is the relation of this github repository to ?

The reason I am asking is that the latter one is what I get for a dependency to rspec-maven-plugin when I use the default maven repository, and it has a bug.

The bug appears when I try to use it as described in

I get a NPE:

[INFO] Running RSpec tests from /home/reynders/project/x/src/test/specs
[ERROR] error emitting .sh
at org.codehaus.mojo.rspec.ShellScriptFactory.getScript(
at org.codehaus.mojo.rspec.AbstractScriptFactory.emit(
at org.codehaus.mojo.rspec.RspecRunnerMojo.execute(
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(

This is caused by the plugin expecting that there is a systemProperties injected to the mojo and it is not anymore so, probably because of

A workaround is to add a dummy systemproperties to the mojo:

                <!-- jrubyHome points to the JRuby installation you wish to use (usually ${env.JRUBY_HOME}) -->
                <!-- sourceDirectory references where your RSpec tests reside -->
                <!-- outputDirectory specifies where the RSpec report should be placed -->


Obvious fix is to check for null.

I'm sorry if this git repo has nothing to do with the official version of the rspec-maven-plugin. If so please let me know and I'll try to look where this bug report belongs to

dcrec1 commented Jun 4, 2012

Hey, this is another another project, no problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.