Re: clojure-1.4.0.jar missing in ~/.m2

2012-05-05 Thread Rostislav Svoboda
Guys, I need to thank you both. Now it works:

  :dependencies [
 [org.clojure/clojure "1.4.0"]
 [colorize "0.1.1" :exclusions [org.clojure/clojure]]
 [noir-cljs "0.3.0"]
 [jayq "0.1.0-alpha1"]
 [fetch "0.1.0-alpha2"]
 [crate "0.1.0-alpha3"]
 [noir "1.3.0-beta2"]
 ]

$ lein deps
Copying 46 files to /home/bost/dev/webcli/lib
$ lein repl
REPL started; server listening on localhost port 19200
user=> (clojure-version)
"1.4.0"

Bost

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: clojure-1.4.0.jar missing in ~/.m2

2012-05-05 Thread Brian Marick

On May 5, 2012, at 7:38 PM, Rostislav Svoboda wrote:
> My guess is that any of the dependencies I defined in my project.clj contains
>:dependencies [[org.clojure/clojure "1.3.0"] ... ]
> so it overrides my [org.clojure/clojure "1.4.0"]


If you have Leiningen 2, you can find the culprit like this:

659 $ lein2 deps :tree
 [colorize 0.1.1]
 [ordered 1.2.0]
   [org.clojure/clojure 1.2.1]<<<=== 
 [org.clojure/algo.monads 0.1.0]
 [org.clojure/core.incubator 0.1.0]
 [org.clojure/core.unify 0.5.2]
 [org.clojure/math.combinatorics 0.0.1]
 [org.clojure/tools.macro 0.1.1]
 [swiss-arrows 0.1.0]
 [utilize 0.2.3]
   [joda-time 2.0]

Then you can "exclude" it in the project.clj file:

[[ordered "1.2.0" :exclusions [org.clojure/clojure]]

However, the Leiningen printout only shows the first blocking dependency. Then 
you have to run it another time to find which next thing to exclude.

None of this makes any sense to me, and I hope I never really need to 
understand it. I accept this pain as an offering to the Java gods.

-
Brian Marick, Artisanal Labrador
Now working at http://path11.com
Contract programming in Ruby and Clojure
Occasional consulting on Agile


-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: clojure-1.4.0.jar missing in ~/.m2

2012-05-05 Thread Michael Klishin
Rostislav Svoboda:

> My guess is that any of the dependencies I defined in my project.clj contains
>:dependencies [[org.clojure/clojure "1.3.0"] ... ]
> so it overrides my [org.clojure/clojure "1.4.0"]

You can exclude org.clojure/clojure for your dependencies:

https://github.com/michaelklishin/monger/blob/master/project.clj#L23

I try to do it for most of http://clojurewerkz.org projects to not worry about 
something
dragging Clojure 1.2 in, for example (all those projects are 1.3+).

MK

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: clojure-1.4.0.jar missing in ~/.m2

2012-05-05 Thread Rostislav Svoboda
On 6 May 2012 01:37, Kurt Harriger  wrote:
> When i first upgraded to clojure 1.4 i had a similar issue with lein not 
> downloading updated dependencies. It tirned out to be an invalid version 
> range dependency spec in midje that caused it to fail silently. Perhaps try 
> removing all other dependencies first and try again.

Kurt, you are right:

  :dependencies [[org.clojure/clojure "1.4.0"]
; [noir-cljs "0.3.0"]
; [jayq "0.1.0-alpha1"]
; [fetch "0.1.0-alpha2"]
; [crate "0.1.0-alpha3"]
; [noir "1.3.0-beta2"]
 ]

$ lein deps
Downloading: org/clojure/clojure/1.4.0/clojure-1.4.0.jar from
repository central at http://repo1.maven.org/maven2
Copying 1 file to /home/bost/dev/webcli/lib

$ find ~/.m2/repository/org/clojure/clojure/ -name clojure-1.4.0.jar
/home/bost/.m2/repository/org/clojure/clojure/1.4.0/clojure-1.4.0.jar

but when I activate the dependencies again:

  :dependencies [[org.clojure/clojure "1.4.0"]
 [noir-cljs "0.3.0"]
 [jayq "0.1.0-alpha1"]
 [fetch "0.1.0-alpha2"]
 [crate "0.1.0-alpha3"]
 [noir "1.3.0-beta2"]
 ]
I get:
$ lein repl
REPL started; server listening on localhost port 55066
user=> (clojure-version)
"1.3.0"

My guess is that any of the dependencies I defined in my project.clj contains
:dependencies [[org.clojure/clojure "1.3.0"] ... ]
so it overrides my [org.clojure/clojure "1.4.0"]

Bost

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: clojure-1.4.0.jar missing in ~/.m2

2012-05-05 Thread Brian Marick

On May 5, 2012, at 6:37 PM, Kurt Harriger wrote:

> When i first upgraded to clojure 1.4 i had a similar issue with lein not 
> downloading updated dependencies. It tirned out to be an invalid version 
> range dependency spec in midje that caused it to fail silently. Perhaps try 
> removing all other dependencies first and try again. 

Note that Midje 1.4 (beta-2 just pushed today) has fixed this problem.

-
Brian Marick, Artisanal Labrador
Now working at http://path11.com
Contract programming in Ruby and Clojure
Occasional consulting on Agile


-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


clojure-1.4.0.jar missing in ~/.m2

2012-05-05 Thread Kurt Harriger
When i first upgraded to clojure 1.4 i had a similar issue with lein not 
downloading updated dependencies. It tirned out to be an invalid version range 
dependency spec in midje that caused it to fail silently. Perhaps try removing 
all other dependencies first and try again. 

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


clojure-1.4.0.jar missing in ~/.m2

2012-05-05 Thread Rostislav Svoboda
Hi, my project.clj contains

  :dependencies [[org.clojure/clojure "1.4.0"]
 [noir-cljs "0.3.0"]
 [jayq "0.1.0-alpha1"]
 [fetch "0.1.0-alpha2"]
 [crate "0.1.0-alpha3"]
 [noir "1.3.0-beta2"]]

but 'lein deps' does not download any clojure-1.4.0.jar only
clojure-1.3.0.jar and clojure-1.2.1.jar

$ cd ~/.m2/repository/org/clojure/clojure/
$ find . -name clojure*
./1.3.0-alpha5/clojure-1.3.0-alpha5.pom
./1.3.0-alpha5/clojure-1.3.0-alpha5.pom.sha1
./1.2.0/clojure-1.2.0.pom
./1.2.0/clojure-1.2.0.pom.sha1
./1.3.0/clojure-1.3.0.jar.sha1
./1.3.0/clojure-1.3.0.jar
./1.3.0/clojure-1.3.0.pom
./1.3.0/clojure-1.3.0.pom.sha1
./1.4.0/clojure-1.4.0.pom
./1.4.0/clojure-1.4.0.pom.sha1
./1.2.1/clojure-1.2.1.pom.sha1
./1.2.1/clojure-1.2.1.pom
./1.2.1/clojure-1.2.1.jar

does anyone know what am I missing? I tried both:
Leiningen 2.0.0-preview3
Leiningen 1.7.1

thx

Bost

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en