The install-gems goal throws exceptions ---------------------------------------
Key: JRUBY-3776 URL: http://jira.codehaus.org/browse/JRUBY-3776 Project: JRuby Issue Type: Bug Affects Versions: JRuby 1.3.1, JRuby 1.3 Environment: OS X 10.5.7 java version "1.6.0_13" Java(TM) SE Runtime Environment (build 1.6.0_13-b03-211) Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02-83, mixed mode) Reporter: Mario Camou Assignee: Thomas E Enebo I have added an install-gems goal to my pom.xml as follows: <plugin> <groupId>org.jruby.plugins</groupId> <artifactId>jruby-rake-plugin</artifactId> <version>${jruby.version}</version> <executions> <execution> <id>install-gems</id> <phase>process-resources</phase> <goals> <goal>install-gems</goal> </goals> <configuration> <gems>--no-rdoc --no-ri ci_reporter activesupport jruby-openssl rest-client json-jruby</gems> </configuration> </execution> <plugin> When running "mvn install" I get the following: [INFO] [jruby-rake:install-gems {execution: install-gems}] [INFO] ci_reporter already installed [INFO] activesupport already installed [INFO] jruby-openssl already installed [INFO] rest-client already installed [INFO] json-jruby already installed [INFO] Generating ast.bat [WARNING] file:/Users/mario/.m2/repository/org/jruby/jruby-complete/1.3.1/jruby-complete-1.3.1.jar!/jruby/commands.rb:44:in `open': No such file or directory - File not found - file:/Users/mario/.m2/repository/org/jruby/jruby-complete/1.3.1/jruby-complete-1.3.1.jar!/META-INF/jruby.home/bin/ast.bat (Errno::ENOENT) [WARNING] from file:/Users/mario/.m2/repository/org/jruby/jruby-complete/1.3.1/jruby-complete-1.3.1.jar!/jruby/commands.rb:44:in `generate_bat_stubs' [WARNING] from file:/Users/mario/.m2/repository/org/jruby/jruby-complete/1.3.1/jruby-complete-1.3.1.jar!/jruby/commands.rb:38:in `each' [WARNING] from file:/Users/mario/.m2/repository/org/jruby/jruby-complete/1.3.1/jruby-complete-1.3.1.jar!/jruby/commands.rb:38:in `generate_bat_stubs' [WARNING] from file:/Users/mario/.m2/repository/org/jruby/jruby-complete/1.3.1/jruby-complete-1.3.1.jar!/jruby/commands.rb:34:in `maybe_install_gems' [WARNING] from maybe_install_gems:1 The problem seems to arise from the fact that the install-gems goal calls maybe_install_gems and sets the META-INF/jruby.home/bin directory as bindir. Then maybe_install_gems calls generate_bat_stubs unconditionally, which tries to generate the stubs. I've tried adding --no-wrappers with no effect. If I add "--bindir /tmp" to the <gems> tag I get: [INFO] [jruby-rake:install-gems {execution: install-gems}] [INFO] ci_reporter already installed [INFO] activesupport already installed [INFO] jruby-openssl already installed [INFO] rest-client already installed [INFO] json-jruby already installed [WARNING] ERROR: While executing gem ... (Gem::CommandLineError) [WARNING] Please specify at least one gem name (e.g. gem build GEMNAME) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email