[ANN] jbundler, jetty-run, ruby-maven

hello,

I do not know how to start but there are new version of jbundler,
jetty-run and ruby-maven gem

jbundler

offers a bundler like management for jar dependencies. these jar
dependencies are coming from the maven central repository and being
maven artifacts jbundler uses (part of) maven to resolve those
dependencies and lock down the version (like bundler does with gem
dependencies). with that you get exactly the same jars as if your
project would be maven project.

in short:

  • add your jars in Jarfile
  • run jbundle install
  • use your project, like bundle exec rake

more info on


jetty-run

that is a small gem starts rails with jetty. itsets up an embedded
jetty using the gems from Gemfile and jars from Jarfile. it comes
with non-SSL and SSL port.

  • cd my-rails-app
  • jruby -S bundle install # it needs a jruby Gemfile.lock
  • jetty-run # that runs with MRI as well but uses jruby within jetty

more info on

ruby-maven

both jbundler and jetty-run uses ruby-maven or its jar files and thus
have ruby-maven as dependency. ruby-maven rounds up the above gems by
providing to create a “package” of a rails application. it respects
both Gemfile and Jarfile when packaging the war file.

  • cd my-rails-app
  • jruby -S jbundle install # it needs a jruby Gemfile.lock and install
    the jar dependencies
  • rmvn package
  • jetty-run war target/my-rails-app*.war

in case you need a pom.xml for your project just copy .pom.xml to
pom.xml after running $ rmvn initialize

ruby-maven also “knows” how to pack executable jar files out of your
gem-project:

  • cd my-project
  • rmvn package -P executable

it will pack jruby and all the dependencies from Jarfile(.lock) and
the gems from Gemfile(.lock). further it adds all the executables from
the packed gems as well all the files in ./bin . now you can start it
with

$ java -jar target/my-porject*jar name_of_bin_script [arguments for
the bin script]

code is on https://github.com/mkristian/ruby-maven but readme is
OUTDATED :frowning:

anyways any feedback and reporting of issues, etc is most welcome.

regards,
Kristian

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs