-
Notifications
You must be signed in to change notification settings - Fork 72
Errors while running java example "HelloCucumber" #119
Comments
Ok. I was able to get those links working by replacing /aslakhellesoy/ with /cucumber/ in the browser address bar as suggested by mylene on thread of issue#108. But still no luck with this java example. |
Try my fork. I updated the build.xml for the java example. |
Hi Joseph, Thanks for your reply. I tried but it failed with error saying ".....examples\java\build.xml:19: Java returned: 1" and I think this is the cause "[cucumber] No such file or directory - target/junit-report/TEST-features\call_step.xml (Errno::ENOENT)". Again I appreciate your help, |
What command did you run and what was the exact output? |
I executed "ant -Divy=true -Dgems=true" and I got following output
|
I am sorry for this hard to read output. Let me know if you want me to upload it somewhere. Thanks for your help, |
Yes makrdown did a number on your output. Try surrounding all of that with <code> and see if that helps (you can preview to see if it works) I don't know about the maven commands, but running with ant does work. The jars are downloaded and the gems are installed. It seems as if one of the actual tests is failing. I wonder if it is a windows problem, in that the right directory is not being created because something is using a / instead of a \ . I'm getting a different problem on linux. The examples run but cucumber hangs. I'll open a separate issue for that. When you run with maven it is running into issue 118, which is why in my build.xml I explicitly install the cucumber 1.0.0 gem. I don't know how to fix the maven run. |
Actually instead of <code> use the three backticks. You can edit your comment by bringing the mouse cursor to the upper right corner of the comment. |
Thanks Joseph. Hope updated output is readable now. |
Hi,
I am having trouble in running java example "HelloCucumber". I downloaded source code from https://github.com/cucumber/cuke4duke/tree/master/examples/java
and trying to run it before I actually run my own java commands.When I try to run with maven like "mvn clean install" I get following error
failed to create task or type antlib:org.apache.ivy.ant:retrieve
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.563s
[INFO] Finished at: Tue Jul 12 15:07:59 PDT 2011
[INFO] Final Memory: 3M/122M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project HelloCucumber: Could not resolve depen
dencies for project HelloCucumber:HelloCucumber:jar:1.0: Failure to find cuke4du
ke:cuke4duke:jar:0.3.2 in http://repository.codehaus.org was cached in the local
repository, resolution will not be reattempted until the update interval of cod
ehaus has elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyReso
lutionException
While when I do it with ant like "ant -Divy=true -Dgems=true" I get following error,
-download-jars:
BUILD FAILED
..\src\java\HelloCucumber\build.xml:28: Problem: failed to create task
or type antlib:org.apache.ivy.ant:retrieve
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any / declarations have taken place.
No types or tasks have been defined in this namespace yet
This appears to be an antlib declaration.
Action: Check that the implementing library exists in one of:
-C:\IOT\Exes\apache-ant-1.8.2\lib
-C:\Users\kwaghmode.ant\lib
-a directory added on the command line with the -lib argument
Total time: 0 seconds
Am I missing something? Also links(on example page on github) 'Ant' and 'Maven' given in "See Ant or Maven for details about how to run the example." are not working.
Thanks for your help,
KW
The text was updated successfully, but these errors were encountered: