[jruby] jruby9-exec-maven-plugin

Cris Shupp cshupp at gmail.com
Tue Jul 11 23:29:35 JST 2017


Hi All,

I am trying to upgrade JRuby to pick up a bug fix that prevents React on
Rails from on windows. (https://github.com/jruby/jruby/issues/4669).

Much to my dismay, once you upgrade to 9.1.9 (9.1.8 works) the build
works.  So, from my maven build, I have:


<dependency>
   <groupId>org.jruby</groupId>
   <artifactId>jruby-complete</artifactId>
   <version>9.1.12.0</version>
</dependency>


And I have:

<plugin>
   <groupId>org.torquebox.mojo</groupId>
   <artifactId>jruby9-exec-maven-plugin</artifactId>
   <version>0.3.1</version>
   <executions>
      <execution>
         <id>bundle install</id>
         <phase>compile</phase>
         <goals>
            <goal>exec</goal>
         </goals>
         <configuration>
            <jrubyVerbose>true</jrubyVerbose>
            <jrubyJvmArgs>-Xmx4000m -Djava.awt.headless=true</jrubyJvmArgs>
            <command>bundle</command>
            <args>install</args>
         </configuration>
      </execution>

If I set JRuby to 9.1.8 in the maven build the bundle install works.
It generates the following:

[INFO] Execute:Java13CommandLauncher: Executing
'C:\languages\Java\jdk1.8.0_65\jre\bin\java.exe' with arguments:
'-cp'
'C:\Users\cshupp\.m2\repository\org\jruby\jruby-complete\9.1.8.0\jruby-complete-9.1.8.0.jar'
'-Xmx4000m'
'-Djava.awt.headless=true'
'-Xbootclasspath/a:C:\Users\cshupp\.m2\repository\org\jruby\jruby-complete\9.1.8.0\jruby-complete-9.1.8.0.jar'
'org.jruby.Main'
'-I'
'C:\work\va-ctt\rails\rails_komet\lib'
'-r'
'jars/setup'
'C:\work\va-ctt\rails\rails_komet\target\rubygems\bin\bundle'
'install'


With 9.1.9 and above it generates:

[INFO] Execute:Java13CommandLauncher: Executing
'C:\languages\Java\jdk1.8.0_65\jre\bin\java.exe' with arguments:
'-cp'
'C:\Users\cshupp\.m2\repository\org\jruby\jruby-complete\9.1.12.0\jruby-complete-9.1.12.0.jar'
'-Xmx4000m'
'-Djava.awt.headless=true'
'-Xbootclasspath/a:C:\Users\cshupp\.m2\repository\org\jruby\jruby-complete\9.1.12.0\jruby-complete-9.1.12.0.jar'
'org.jruby.Main'
'-I'
'C:\work\va-ctt\rails\rails_komet\lib'
'-e'
'require 'jruby/commands'; JRuby::Commands.generate_dir_info
'C:\work\va-ctt\rails\rails_komet\target\rubygems' if
JRuby::Commands.respond_to? :generate_dir_info'
'--'


And the build fails.  The failure happens on windows only.  Any ideas?


Thanks,


Cris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ruby-lang.org/pipermail/jruby/attachments/20170711/d9f5044e/attachment-0001.html>


More information about the JRuby mailing list