Hi,
I’m trying to run RSpec from Maven through the jruby-rake-plugin. I’m
getting an error where the plugin is looking for bin/spec:
[INFO] Error opening script file: /Users/mario/Desktop/
abstra.cc/projects/BMClient/file:/Users/mario/.m2/repository/org/jruby/jruby-complete/1.4.0/jruby-complete-1.4.0.jar!/META-INF/jruby.home/lib/ruby/gems/1.8/gems/rspec-1.2.9/bin/spec(No
such file or directory)
[WARNING] rake aborted!
[WARNING] Command
file:/Users/mario/.m2/repository/org/jruby/jruby-complete/1.4.0/jruby-complete-1.4.0.jar!/META-INF/jruby.home/bin/jruby
-I"src/main/ruby/app:src/main/ruby/conf"
“file:/Users/mario/.m2/repository/org/jruby/jruby-complete/1.4.0/jruby-complete-1.4.0.jar!/META-INF/jruby.home/lib/ruby/gems/1.8/gems/rspec-1.2.9/bin/spec”
“src/test/ruby/spec/core/backend_spec.rb”
“src/test/ruby/spec/core/model_spec.rb” --format specdoc failed
and of course, bin/spec doesn’t exist in jruby-complete.jar.
A workaround for the moment is to have a full instalation if JRuby and
do a
-Djruby.home when calling mvn, but that’s a stopgap measure. Any ideas?
Should I report this as a bug?
Here’s the relevant part of my pom.xml. jruby.version is set to 1.4.0:
src/main/scala src/test/scala src/main/ruby org.jruby.plugins jruby-rake-plugin ${jruby.version} install-gems process-resources install-gems ${gem.options} ${required.gems} ${testing.required.gems} clobber clean rake ${basedir} clobber runtests test rake ${basedir} spec rdoc verify rake ${basedir} rdoc-Mario.