technomancy/leiningen — Issue #355: Vanilla lein fails if clojure-1.3.0.sources.jar is in lib/dev
Author: kokaku
Created: 2011-12-22 11:10:24+00:00
State: open

Steps:
* Setup lein in a fresh install
* Make sure ~/.m2/repository/org/clojure/clojure/1.2.1/clojure-1.2.1.jar does not exist
* `lein new test-project`
* In project.clj, make sure the clojure version is 1.3.0 and add
`:dev-dependencies [[org.clojure/clojure "1.3.0" :classifier "sources"]]`
* `lein deps`
* `lein version`

Actual:
`lein version` fails with a lengthy stack trace

Expected:
`lein version` shows the version

Notes:

Having clojure-1.2.1.jar in ~/.m2 will make things work even if the 1.3.0 sources jar is there
Removing the sources jar in lib/dev will make things work again
Guessing this is a problem with classpath ordering in the lein shell script

More discussion of the problem here...
http://groups.google.com/group/leiningen/browse_thread/thread/1dd23b3f075760bd