torquebox/jruby-maven-plugins — Issue #25: Failed to build native extension.
Author: kungfuters
Created: 2012-01-05 21:31:41+00:00
State: open

I am experiencing a bug very similar to this:

http://jira.codehaus.org/browse/JRUBY-5488

I am trying to use the gem-maven-plugin to run a Compass build of SASS, which requires the FSSM gem. I am using v0.28.6 of the gem-maven-plugin. I have tried many different versions as well, but none seem to work. I have also tried different versions of JRuby (back to 1.6.2, at which point I start receiving arraycopy errors instead,) but again, none work. My exact output is as follows:

[INFO] Building native extensions. This could take a while...
[WARNING] ERROR: Error installing /Users/me/.m2/repository/rubygems/fssm/0.2.8/fssm-0.2.8.gem:
[WARNING]	ERROR: Failed to build gem native extension.
[WARNING]
[WARNING] "java -jar /Users/me/.m2/repository/org/jruby/jruby-complete/1.6.4/jruby-complete-1.6.4.jar" -rubygems /Users/me/Documents/workspace/seedmatrix-workspace/seedmatrix/seedmatrix-web/target/rubygems/gems/rake-0.9.2.2/bin/rake RUBYARCHDIR=/Users/me/Documents/workspace/seedmatrix-workspace/seedmatrix/seedmatrix-web/target/rubygems/gems/fssm-0.2.8/lib RUBYLIBDIR=/Users/me/Documents/workspace/seedmatrix-workspace/seedmatrix/seedmatrix-web/target/rubygems/gems/fssm-0.2.8/lib
[WARNING] /bin/sh: java -jar /Users/me/.m2/repository/org/jruby/jruby-complete/1.6.4/jruby-complete-1.6.4.jar: No such file or directory

As discussed in the provided link to a JRuby JIRA, I believe the issue may have to do with the way the "java -jar ..." portion is double-quoted. It's being treated like one long file name instead of three separate pieces. Any ideas?