defenistrator
defenistrator

Reputation: 87

consuming gems from jruby-complete

I can make my jruby-complete consume gems from a jar passed to it. But I'd like to use a central gem repo.

This is what I can do now:

$ java -jar jruby-complete-1.6.5.jar -S gem list

*** LOCAL GEMS ***

rake (0.8.7)
sources (0.0.1)


$ java -jar jruby-complete-1.6.5.jar -rjar_of_gems.jar -S gem list

*** LOCAL GEMS ***

erubis (2.7.0)
mizuno (0.4.1)
rack (1.4.0)
rack-protection (1.2.0)
rake (0.8.7)
rna (0.0.101)
sinatra (1.3.2)
sources (0.0.1)
tilt (1.3.3)

Having to change the jar file everytime I update a gem or need to add a gem is more overhead than I want to do.

Any suggestions, there must be a way to get jruby-complete to point to a gem repo like regular jruby?

Upvotes: 5

Views: 479

Answers (1)

deepflame
deepflame

Reputation: 928

Option 1

set GEM_HOME

if in windows do not try to export it from cygwin when testing it, jruby gets all messed up with cygwin paths

(this answer is a copy of a comment above)

Option 2

If you use Maven you can also try the Maven-Gem-Proxy: http://rubygems-proxy.torquebox.org/

Upvotes: 1

Related Questions