[jruby] JRuby Digest, Vol 23, Issue 4

christian m.kristian at web.de
Wed Jul 12 15:16:33 JST 2017


yes, jruby9-exec-maven-plugin installs all the gem declared in the pom.xml
at the place you mentioned.

- Christian



On Tue, Jul 11, 2017 at 10:41 PM, Cris Shupp <cshupp at gmail.com> wrote:

> Tom,
>
> I am not sure if your question was addressed to me or not.  When I run my
> maven build, under the target directory a directory called rubygems is
> created. It has a bin directory with bundle.rb , bundler.rb and rake.rb.  I
> have been assuming that the jruby9-exec-maven-plugin has been doing this
> for me.
>
> Thanks,
>
> Cris
>
> On Tue, Jul 11, 2017 at 12:02 PM, <jruby-request at ruby-lang.org> wrote:
>
>> Send JRuby mailing list submissions to
>>         jruby at ruby-lang.org
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>>         http://lists.ruby-lang.org/cgi-bin/mailman/listinfo/jruby
>> or, via email, send a message with subject or body 'help' to
>>         jruby-request at ruby-lang.org
>>
>> You can reach the person managing the list at
>>         jruby-owner at ruby-lang.org
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of JRuby digest..."
>>
>> Today's Topics:
>>
>>    1. Re: jruby9-exec-maven-plugin (Thomas E Enebo)
>>    2. Re: jruby9-exec-maven-plugin (Christian MICHON)
>>
>>
>> ---------- Forwarded message ----------
>> From: Thomas E Enebo <tom.enebo at gmail.com>
>> To: JRuby project mailing list <jruby at ruby-lang.org>
>> Cc:
>> Bcc:
>> Date: Tue, 11 Jul 2017 09:39:48 -0500
>> Subject: Re: [jruby] jruby9-exec-maven-plugin
>> 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
>>
>>
>> ---------- Forwarded message ----------
>> From: Christian MICHON <christian.michon at gmail.com>
>> To: Mailing list for the JRuby project <jruby at ruby-lang.org>
>> Cc:
>> Bcc:
>> Date: Tue, 11 Jul 2017 18:02:38 +0200
>> Subject: Re: [jruby] jruby9-exec-maven-plugin
>> 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
>>>
>>
>> _______________________________________________
>> JRuby mailing list
>> JRuby at ruby-lang.org
>> http://lists.ruby-lang.org/cgi-bin/mailman/listinfo/jruby
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ruby-lang.org/pipermail/jruby/attachments/20170712/7bdb4807/attachment-0001.html>


More information about the JRuby mailing list