[jruby] jruby9-exec-maven-plugin

Thomas E Enebo tom.enebo at gmail.com
Wed Jul 12 03:27:01 JST 2017


Ah yeah that is a very good point...It seems weird to think that jruby is
changing to that -e line though...Perhaps the two envs installed gems at
different points of time then?

-Tom

On Tue, Jul 11, 2017 at 11:02 AM, Christian MICHON <
christian.michon at gmail.com> wrote:

> Normally bundler is not inside jruby 9k...
>
> Le 11 juil. 2017 16:47, "Thomas E Enebo" <tom.enebo at gmail.com> a écrit :
>
>> 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
>>
>


-- 
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/f78ce816/attachment.html>


More information about the JRuby mailing list