Created
April 10, 2013 10:50
-
-
Save JJWTimmer/5353619 to your computer and use it in GitHub Desktop.
Working pom.xml for running cucumber with JRuby
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 | |
http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>nl.foo.cucumber</groupId> | |
<artifactId>ruby-stack-example</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<packaging>jar</packaging> | |
<name>Examples: Ruby Stack</name> | |
<properties> | |
<cucumber-jvm-version>1.1.3</cucumber-jvm-version> | |
</properties> | |
<dependencies> | |
<dependency> | |
<groupId>org.jruby</groupId> | |
<artifactId>jruby-complete</artifactId> | |
<version>1.7.3</version> | |
<scope>verify</scope> | |
</dependency> | |
<dependency> | |
<groupId>info.cukes</groupId> | |
<artifactId>cucumber-jruby</artifactId> | |
<version>${cucumber-jvm-version}</version> | |
<scope>verify</scope> | |
</dependency> | |
<dependency> | |
<groupId>info.cukes</groupId> | |
<artifactId>cucumber-junit</artifactId> | |
<version>${cucumber-jvm-version}</version> | |
<scope>verify</scope> | |
</dependency> | |
<dependency> | |
<groupId>junit</groupId> | |
<artifactId>junit</artifactId> | |
<version>4.11</version> | |
<scope>verify</scope> | |
</dependency> | |
</dependencies> | |
<build> | |
<testResources> | |
<testResource> | |
<directory>${basedir}/src/test/resources</directory> | |
<filtering>true</filtering> | |
</testResource> | |
</testResources> | |
<plugins> | |
<plugin> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<version>2.3.2</version> | |
<configuration> | |
<source>1.6</source> | |
<target>1.6</target> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-failsafe-plugin</artifactId> | |
<version>2.12</version> | |
<executions> | |
<execution> | |
<id>integration-test</id> | |
<phase>integration-test</phase> | |
<goals> | |
<goal>integration-test</goal> | |
</goals> | |
</execution> | |
<execution> | |
<id>verify</id> | |
<phase>verify</phase> | |
<goals> | |
<goal>verify</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
<profiles> | |
<profile> | |
<id>initial-bundle</id> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-antrun-plugin</artifactId> | |
<version>1.6</version> | |
<executions> | |
<execution> | |
<phase>generate-test-resources</phase> | |
<configuration> | |
<target> | |
<sequential> | |
<echo message="Installing gems"/> | |
<java jar="${maven.dependency.org.jruby.jruby-complete.jar.path}" | |
fork="true" failonerror="true" maxmemory="256m" | |
newenvironment="true"> | |
<arg value="-S"/> | |
<arg value="gem"/> | |
<arg value="install"/> | |
<!--<arg value="bundler"/>--> | |
<arg value="capybara"/> | |
<arg value="rspec"/> | |
<arg value="selenium-webdriver"/> | |
<arg value="cucumber"/> | |
<arg value="chronic"/> | |
<arg value="rake"/> | |
<arg value="aruba"/> | |
<arg value="-i"/> | |
<arg value="${basedir}/src/test/gems"/> | |
<arg value="--no-ri"/> | |
<arg value="--no-rdoc"/> | |
</java> | |
</sequential> | |
</target> | |
</configuration> | |
<goals> | |
<goal>run</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
</profile> | |
</profiles> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment