A maven plugin for invoking JRuby
In order to use this Maven plugin, you will need to configure your pom.xml (or proxy repository) to point to the repository at http://timezra.github.com/maven/releases
<pluginRepositories>
<pluginRepository>
<id>tims-repo</id>
<url>http://timezra.github.com/maven/releases </url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
Work in progress....
For now, please use 'mvn timezra.maven:jruby-maven-plugin:1.7.4:help' to find out usage information.
Because rvm sets the $GEM_HOME, $GEM_PATH and $RUBY_VERSION environment variables, if you do not wish to use these and wish to configure these values from the plugin, you will need to
$ unset GEM_PATH GEM_HOME RUBY_VERSION
$ mvn timezra.maven:jruby-maven-plugin:1.7.4:gem-install -Dgem_home=`pwd`/target/gems -Dgem=bundler -e
$ mvn timezra.maven:jruby-maven-plugin:1.7.4:gem-list -Dgem_home=`pwd`/target/gems -e
$ mvn timezra.maven:jruby-maven-plugin:1.7.4:bundle-init -Dgem_home=`pwd`/target/gems -e
$ mvn timezra.maven:jruby-maven-plugin:1.7.4:bundle-install -Dgem_home=`pwd`/target/gems -Dgemfile=`pwd`/Gemfile -e
$ mvn timezra.maven:jruby-maven-plugin:1.7.4:cli -Druby_version=2.0 -Dargs="-v"
$ mvn timezra.maven:jruby-maven-plugin:1.7.4:cli -Dgem_home="`pwd`/target/gems" -Dargs="-S \"`pwd`/target/gems/bin/bundle\" show bundler"