Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

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

Comments

Projects
None yet
4 participants
@secristr
Copy link

commented Jan 17, 2014

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

This comment has been minimized.

Copy link
Member

commented Jan 18, 2014

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

@secristr

This comment has been minimized.

Copy link
Author

commented Jan 18, 2014

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

@mkristian

This comment has been minimized.

Copy link
Member

commented Jan 18, 2014

jruby-launcher gem compiles C code, so you need some c-compiler,
alternatively you can delete the jruby-launcher gem dependency in
test/pom.xml

as far I know the laucher is nice to have, but things work without it - at
least on the unix/linux side of things.

@secristr

This comment has been minimized.

Copy link
Author

commented Jan 20, 2014

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

This comment has been minimized.

Copy link
Author

commented Jan 23, 2014

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

This comment has been minimized.

Copy link
Member

commented Feb 24, 2014

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
You can’t perform that action at this time.