TOTD #18: How to Build The GlassFish v3 Gem for JRuby ?
Jerome posted the
instructions to build
GlassFish v3 Gem for JRuby - very simple and easy. A binary version of Gem
is available
here.
- Software pre-requisite
- Subversion client (for example
Tigris) - Maven 2.0.x
- JRuby 1.0.x (I used
JRuby 1.0.2
and lets say installed inJRUBY_HOME). Make sure
JRUBY_HOME/binis in your path.
- Subversion client (for example
- Build the Gem
-
As explained in
Jerome's
entry, you can check out complete GlassFish v3 workspace or just the
Gem code. Here is how you'll check out only the Gem code on a Windows
machine using Tigris Subversion client:

And after the check out is complete, you'll see:

- Build the gem by giving the command:
mvn install
And success is achieved by seeing the following in the console:
The Gem is available in[INFO] (in
C:/workspaces/glassfish/gem/target/dependency/glassfish)<br>
[WARNING] mkdir -p pkg<br>
[INFO] Successfully built RubyGem<br>
[INFO] Name: GlassFish<br>
[WARNING] mv GlassFish-10.0.0-java.gem pkg/GlassFish-10.0.0-java.gem<br>
[INFO] Version: 10.0.0<br>
[INFO] File: GlassFish-10.0.0-java.gem<br>
[INFO] [install:install]<br>
[INFO] Installing
C:\workspaces\glassfish\gem\target\gem-10.0-SNAPSHOT.jar to C:\Users\Arun
Gupta\.m2\repository\org\glassfish\distributions\gem\10.0-SNAPSHOT\gem-10.0-SNAPSHOT.jar<br>
[INFO] [install:install-file {execution: install-gem}]<br>
[INFO] Installing
C:\workspaces\glassfish\gem\target\dependency\glassfish\pkg\GlassFish-10.0.0-java.gem
to C:\Users\Arun
Gupta\.m2\repository\org\glassfish\distributions\GlassFish-Gem\10.0-SNAPSHOT\GlassFish-Gem-10.0-SNAPSHOT.gem<br>
[INFO]
------------------------------------------------------------------------<br>
[INFO] BUILD SUCCESSFUL<br>
[INFO]
------------------------------------------------------------------------<br>
[INFO] Total time: 2 minutes 2 seconds<br>
[INFO] Finished at: Fri Nov 16 17:56:12 PST 2007<br>
[INFO] Final Memory: 11M/20M<br>
[INFO]
------------------------------------------------------------------------<br>
<br>
target\dependency\glassfish\pkg
directory.
-
- Install the Gem
- Change to the directory where the Gem is available
cdtarget\dependency\glassfish\pkg - Install the Gem as:
C:\testbed\ruby\jruby-1.0.2\bin\jruby -S gem install
GlassFish-10.0.0-java.gem<br>
Successfully installed GlassFish, version 10.0.0
- Change to the directory where the Gem is available
And
use it!
Please leave suggestions on other TOTD that you'd like to see. A complete
archive is available here.
Technorati:
totd
v3
jruby
ruby
rubyonrails
glassfish
rubygem
jrubyonglassfish
- Login or register to post comments
- Printer-friendly version
- arungupta's blog
- 978 reads





