consuming gems from jruby-complete

牧云@^-^@ 提交于 2019-12-14 00:58:27

问题


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?


回答1:


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/



来源:https://stackoverflow.com/questions/8734279/consuming-gems-from-jruby-complete

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!