[jruby] jruby9-exec-maven-plugin

Thomas E Enebo tom.enebo at gmail.com
Tue Jul 11 23:39:48 JST 2017


That weirdly does not look like it will do the equivalent of bundle install
so I don't get it.  Can you see if we changed bundler between 9.1.8 and
9.1.9?

-Tom

On Tue, Jul 11, 2017 at 9:29 AM, Cris Shupp <cshupp at gmail.com> wrote:

> 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
>
>


-- 
blog: http://blog.enebo.com       twitter: tom_enebo
mail: tom.enebo at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ruby-lang.org/pipermail/jruby/attachments/20170711/90d1c094/attachment.html>


More information about the JRuby mailing list