Skip to content

Instantly share code, notes, and snippets.

@Yasushi
Created February 17, 2009 08:43
Show Gist options
  • Save Yasushi/65646 to your computer and use it in GitHub Desktop.
Save Yasushi/65646 to your computer and use it in GitHub Desktop.
maven で cucumber を使う
<!--
http://binil.wordpress.com/2008/10/29/running-cucumber-on-jrubymaven/
-->
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>test</groupId>
<artifactId>cucumbertest</artifactId>
<version>1.0</version>
<dependencies>
<dependency>
<groupId>org.jruby</groupId>
<artifactId>jruby-complete</artifactId>
<version>1.1.6</version>
</dependency>
</dependencies>
<profiles>
<profile>
<id>install-cucumber</id>
<activation>
<file>
<missing>${user.home}/.gem/jruby/1.8/gems/cucumber-0.1.16</missing>
</file>
</activation>
<build>
<defaultGoal>initialize</defaultGoal>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>initialize</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<java classname="org.jruby.Main" fork="true">
<classpath refid="maven.compile.classpath"/>
<arg line="-S gem install jruby-openssl --no-ri --no-rdoc --no-test"/>
</java>
<java classname="org.jruby.Main" fork="true">
<classpath refid="maven.compile.classpath"/>
<arg line="-S gem install diff-lcs --no-ri --no-rdoc --no-test"/>
</java>
<java classname="org.jruby.Main" fork="true">
<classpath refid="maven.compile.classpath"/>
<arg line="-S gem install hoe --no-ri --no-rdoc --no-test"/>
</java>
<java classname="org.jruby.Main" fork="true">
<classpath refid="maven.compile.classpath"/>
<arg line="-S gem install cucumber --no-ri --no-rdoc"/>
</java>
<java classname="org.jruby.Main" fork="true">
<classpath refid="maven.compile.classpath"/>
<arg line="-S gem install celerity --no-ri --no-rdoc"/>
</java>
</tasks>
</configuration>
</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