Run Ruby script from Maven

We have a large Maven project that is trying to create an org.codehaus.mojo.exec-maven file in a script.rb file. This works fine on * nix systems because the script.rb file starts with:

#!/usr/bin/env ruby

(Note that I know almost nothing about Ruby.)

Of course, this does not work on Windows, even with Ruby installed, in PATH and is associated with .rb files.

I looked at http://mojo.codehaus.org/rubyscript-maven-plugin/ , but the repository they mention about, http://propellors.net/maven-repo , doesn't seem to even exist.

In the end, I want to end the script and switch to pure Java, but at the same time, in this monolithic project, I'm just trying to get it to build on Windows. Any idea on how I can do exec in a .rb file in a cross-platform way in Maven?

Thank.

0
source share
1 answer

According to this and which you could try

<dependency>
  <groupId>de.saumya.mojo</groupId>
  <artifactId>gem-maven-plugin</artifactId>
  <version>0.25.1</version>
</dependency>

which is the latest version offered by me nexus.

+1
source

All Articles