On Sun, May 17, 2009 at 12:01 AM, Raymond Barlow <[email protected]>wrote:
> OK, that seemed to help a bit. That installed a bunch of stuff, and then I > did the mvn clean package in the examples directory--which built the example > jar. > > So I guess my next step would be to > cucumber features > in the featuers directory of the simple example? > > I tried this a got an error about pico_container. So I thought that maybe I > hadn't setup correctly. > > So, back to the start. > > did > jruby -S gem install hoe --no-rdoc --no-ri > and that worked fine. > > The next step listed on the cucumber-java > page<http://github.com/aslakhellesoy/cucumber_java/tree/master>is to > jruby -S rake gem > > when I do this, I get this error: > (in /Users/rbarlow/Development/tools/cucumber_java) > rake aborted! > Don't know how to build task 'gem' > The task you are referring to should be run from the cucumber-java subproject, not the root project. I have had problems running the rake tasks using Windows (both cygwin and the regular cmd-tool) and had to edit the Rakefile manually for my environment. After installing your own gem using jruby -S gem install pkg/cucumber... you can run mvn cucumber:features from each of the example-projects. > > (See full trace by running task with --trace) > > Am I perhaps in the wrong directory when I do this? > > > > Sorry, just feeling my way around at the moment. > > > Cheers! > Raymond Barlow > 2009/5/16 aslak hellesoy <[email protected]> > > > Hi all, >> > >> > Does anyone have an example of how to get the cucumber-java simple >> example >> > running? I would like to use cucumber-java but cannot figure out how. >> > >> > I've gem installed cucumber and cucumber-java. When I run mvn clean >> package >> > in the simple directory, I get this error: >> > >> > 19:41:48 agentdh-2:~/Development/tools/cucumber_java/examples/simple >> > rbarlow$ mvn clean package >> > Using Java version: 1.5 >> > [INFO] Scanning for projects... >> > [INFO] >> > ------------------------------------------------------------------------ >> > [INFO] Building Cucumber Simple Example >> > [INFO] task-segment: [clean, package] >> > [INFO] >> > ------------------------------------------------------------------------ >> > Downloading: >> > >> http://repo1.maven.org/maven2/cucumber/cucumber-java-parent/0.0.2/cucumber-java-parent-0.0.2.pom >> > [INFO] >> > ------------------------------------------------------------------------ >> > [ERROR] BUILD ERROR >> > [INFO] >> > ------------------------------------------------------------------------ >> > [INFO] Failed to resolve artifact. >> > >> > GroupId: cucumber >> > ArtifactId: cucumber-java-parent >> > Version: 0.0.2 >> > >> > Reason: Unable to download the artifact from any repository >> > >> > cucumber:cucumber-java-parent:pom:0.0.2 >> > >> > from the specified remote repositories: >> > central (http://repo1.maven.org/maven2) >> > >> > >> > [INFO] >> > ------------------------------------------------------------------------ >> > [INFO] For more information, run Maven with the -e switch >> > [INFO] >> > ------------------------------------------------------------------------ >> > [INFO] Total time: 1 second >> > [INFO] Finished at: Sat May 16 19:41:52 BST 2009 >> > [INFO] Final Memory: 1M/3M >> > [INFO] >> > ------------------------------------------------------------------------ >> > >> > Any suggestions? Or does anyone have an equivalent ant script? >> > >> >> Try mvn install from the root folder first. >> >> Aslak >> >> > Cheers, >> > Raymond Barlow >> > >> > _______________________________________________ >> > rspec-users mailing list >> > [email protected] >> > http://rubyforge.org/mailman/listinfo/rspec-users >> > >> _______________________________________________ >> rspec-users mailing list >> [email protected] >> http://rubyforge.org/mailman/listinfo/rspec-users >> > > > _______________________________________________ > rspec-users mailing list > [email protected] > http://rubyforge.org/mailman/listinfo/rspec-users > -- TronD
_______________________________________________ rspec-users mailing list [email protected] http://rubyforge.org/mailman/listinfo/rspec-users
