nilswloka / lein-cucumber

A simple leiningen plugin for running clojure-based cucumber-jvm specifications.
The Unlicense
39 stars 26 forks source link

Lein Cucumber 0.2.0 always throws ClassNotFoundException: cucumber.formatter.FormatterFactory #13

Closed awostenberg closed 12 years ago

awostenberg commented 12 years ago

The readme.md instructions fork fine for :dev-dependencies [[lein-cucumber "0.1.0"]].

However following them with :dev-dependencies [[lein-cucumber "0.2.0"]] always throws the error below:

Steps.

  1. lein new
  2. revise project.clj: (defproject cuke "1.0.0-SNAPSHOT" :description "leiningen cucumber tutorial" :dependencies [[org.clojure/clojure "1.3.0"]] :dev-dependencies [[lein-cucumber "0.2.0"]])
  3. lein deps
  4. lein cucumber error: Exception in thread "main" java.lang.RuntimeException: java.lang.ClassNotFoundException: cucumber.formatter.FormatterFactory
undees commented 12 years ago

I can replicate this issue on my machine (OS X 10.7).

nilswloka commented 12 years ago

I will have a look at the issue as soon as possible. I suspect a version mismatch with cucumber-jvm. In the meantime, you might want to have a look at the 1.0 branch.

nilswloka commented 12 years ago

This has indeed been an issue caused by incompatible transitive dependencies of the cucumber-clojure version. I suggest going for version 1.0.0, which I just released to clojars.

awostenberg commented 12 years ago

Thanks.

On Sat, Apr 28, 2012 at 5:19 PM, Nils Wloka < reply@reply.github.com

wrote:

This has indeed been an issue caused by incompatible transitive dependencies of the cucumber-clojure version. I suggest going for version 1.0.0, which I just released to clojars.


Reply to this email directly or view it on GitHub: https://github.com/nilswloka/lein-cucumber/issues/13#issuecomment-5401121

undees commented 12 years ago

Switching to :plugins [[lein-cucumber "1.0.0"]] fixed the issue for me as well; thank you!