Skip to content

Instantly share code, notes, and snippets.

@matschaffer
Created November 13, 2009 16:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matschaffer/233963 to your computer and use it in GitHub Desktop.
Save matschaffer/233963 to your computer and use it in GitHub Desktop.
<dependency>
<groupId>org.jruby</groupId>
<artifactId>jruby-complete</artifactId>
<version>1.3.1</version>
<scope>provided</scope>
</dependency>
<properties>
<jruby>${settings.localRepository}/org/jruby/jruby-complete/1.3.1/jruby-complete-1.3.1.jar</jruby>
</properties>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>my_script</id>
<phase>compile</phase>
<configuration>
<tasks>
<java jar="${jruby}" fork="true" failonerror="yes">
<arg value="${basedir}/src/main/ruby/myscript.rb" />
</java>
</tasks>
</configuration>
</execution>
</executions>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment