Download Latest Version ruben-plugins-0.3-build.tar.gz (15.0 kB)
Email in envelope

Get an email when there's a new version of Ruben

Home / ruben-plugins / ruben-plugins-0.1
Name Modified Size InfoDownloads / Week
Parent folder
README-UPDATED.txt 2006-08-18 2.2 kB
ruben-plugins-0.1-build.tar.gz 2006-08-18 9.6 kB
ruben-plugins-0.1-build.zip 2006-08-18 26.2 kB
Totals: 3 Items   37.9 kB 0
Ruben
Ruben (a combination of Rub(y-mav)en) provides Maven 2.x plugins for Ruby builds. The initial release provides the
bare basics for building Ruby with Maven 2.x.

Supported Features:
1) Runs Ruby Unit Tests and fails builds if the unit tests do not pass.
2) Does dependency resolution. This does not include 1) transitive dependencies, so you will need to include every
dependency in the pom.xml file; 2) downloading from a remote repo. Ruben will support these features in a future release.

To build the plugin, you will need maven 2.x installed. From the plugin directory, type "mvn install". Now you are
ready to go. To build your Ruby project with Maven, just structure your ruby project like the standard maven project and
type "mvn install" from the command line. Ruben will resolve the dependencies and run the unit tests
(each test should end in "Test.rb"). Under the target/ruby-project, you will see two directories: lib and test. The
lib directory will contain your code and all the dependent code. The .m2 local repo will contain an archived
version of the source code.

You will need to add the following to your pom.xml file.

    <build>
	<sourceDirectory>src/main/ruby</sourceDirectory>
        <plugins>
            <plugin>
                <groupId>net.sf.ruben</groupId>
                <artifactId>maven-rbs-plugin</artifactId>
     			<extensions>true</extensions>
                <configuration>
                </configuration>
            </plugin>

             <plugin>
                <groupId>net.sf.ruben</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
     			<extensions>true</extensions>
                <configuration>
                </configuration>
            </plugin>

      <plugin>
        <groupId>net.sf.ruben</groupId>
        <artifactId>maven-test-plugin</artifactId>
		<configuration>           
            <testSourceDirectories>
              <testSourceDirectory>${basedir}/src/test/ruby</testSourceDirectory>
            </testSourceDirectories>
        </configuration>
      </plugin>

        </plugins>
    </build>
Source: README-UPDATED.txt, updated 2006-08-18