mvn -Pbootstrap fails to build JRuby Integration Tests? #1416

Closed
secristr opened this Issue Jan 17, 2014 · 6 comments

4 participants

@secristr

When I execute:

mvn -Pbootstrap
against a successfully built JRuby 1.7.10 I get the following errors:
...
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ jruby-tests ---
[INFO] 
[INFO] --- gem-maven-plugin:1.0.0-rc2:initialize (default) @ jruby-tests ---
[INFO] Building native extensions.  This could take a while...
[WARNING] C:/_rcs/watir-build/jruby/jruby-1.7.10/test/../lib/ruby/shared/rubygems/ext/ext_conf_builder.rb:44 warning: Tempfile#unlink or delete called on open file; ignoring
[WARNING] ERROR:  Error installing C:\Users\rsz\.m2\repository\rubygems\jruby-launcher\1.0.19\jruby-launcher-1.0.19.gem:
[WARNING]   ERROR: Failed to build gem native extension.
[WARNING] 
[WARNING]     C:/_rcs/watir-build/jruby/jruby-1.7.10/test/../bin/jruby.exe extconf.rb
[WARNING] Use RbConfig instead of obsolete and deprecated Config.
[WARNING] # These line gets substituted with the actual Config::CONFIG items location by extconf.rb
[WARNING] PREFIX = C:/_rcs/watir-build/jruby/jruby-1.7.10
[WARNING] BINDIR = C:/_rcs/watir-build/jruby/jruby-1.7.10/bin
[WARNING] INSTALLDIR = $(PREFIX)/lib/ruby/shared/rubygems/defaults
[WARNING] OLDINSTALLDIR = $(PREFIX)/lib/ruby/site_ruby/1.8/rubygems/defaults
...
[INFO] Reactor Summary:
[INFO] 
[INFO] JRuby ............................................. SUCCESS [0.239s]
[INFO] JRuby Core ........................................ SUCCESS [28.120s]
[INFO] JRuby Ext ......................................... SUCCESS [0.001s]
[INFO] JRuby OpenSSL ..................................... SUCCESS [0.538s]
[INFO] JRuby Readline .................................... SUCCESS [0.062s]
[INFO] JRuby Ripper ...................................... SUCCESS [0.283s]
[INFO] JRuby Integration Tests ........................... FAILURE [38.114s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:07.517s
[INFO] Finished at: Fri Jan 17 17:16:29 EST 2014
[INFO] Final Memory: 22M/61M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal de.saumya.mojo:gem-maven-plugin:1.0.0-rc2:initialize (default) on project jruby-tests: Execution default of goal de.saumya.mojo:gem-maven-plugin:1.0.0-rc2:initialize failed: Java returned: 1 -> [Help 1]

Environment is mvn 3.1.1 and Java 1.7.0_45 on Windows 7.

Any ideas on how I can complete the goal? I am new to building JRuby.

Thanks!
rcs

@BanzaiMan
JRuby Team member

Do you have a compiler? If you don't, perhaps the bootstrap profile is broken on Windows.

@secristr

Yes, the JDK successfully builds JRuby but fails the testing. Any ideas?

@mkristian
JRuby Team member
@secristr

Thanks mkristian for the insight! I did not understand Banzaiman meant I needed a C compiler; I did not have gcc installed in that Windows environment where the error occurred. My project requires JRuby to communicate with the Selenium IEDriverServer from WATIR, so hopefully those do not need the launcher. I will try taking this gem out of the pom and retest. Thanks to you both.

@secristr

Follow up: The suggestion by mkristian worked perfectly. In ~\jruby-1.7.10\test\pom.xml I simply commented out the offending dependency (see below) and mvn -Pbootstrap completed successfully.

<!--
<dependency>
  <groupId>rubygems</groupId>
  <artifactId>jruby-launcher</artifactId>
  <version>${jruby-launcher.version}</version>
  <type>gem</type>
</dependency>
-->

In my case I needed to use WATIR and Selenium's IEDriverServer, which apparently do not need the jruby-launcher.

@mkristian
JRuby Team member

there is profile bootstrap-no-launcher now

@mkristian mkristian closed this Feb 24, 2014
@enebo enebo added this to the JRuby 1.7.11 milestone Feb 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment