This took me a while to debug cause I expected [org.clojure/clojure
"1.5.0-master-SNAPSHOT"] to cause a failure since I didn't have it.
Turns out, version ranges will ignore not finding the dependency if it
is outside of the range.

In this case, seesaw has a dependency on j18n.  j18n has a dependency
on clojure [1.2,1.5).  1.5.0-master-SNAPSHOT falls outside this range,
so the dependency resolution ignores that artifact.  Instead it uses
the closest version to the project root that is in range, in this case
1.3.0 asked for by core.logic.

To fix this use [seesaw "1.4.2" :exclusions [org.clojure/clojure]]]).

On Tue, Aug 21, 2012 at 2:31 PM, Jim - FooBar(); <jimpil1...@gmail.com> wrote:
> (defproject Clondie24 "0.1.0-SNAPSHOT"
>   :description "Blondie24 Extreme-Makeover! "
>   :url "https://github.com/jimpil/Clondie24";
>   :license {:name "Eclipse Public License"
>             :url "http://www.eclipse.org/legal/epl-v10.html"}
>   :dependencies [
>                  [org.clojure/clojure "1.5.0-alpha3"]
>                 ;[org.clojure/clojure "1.5.0-master-SNAPSHOT"] this one
> fails but the jar is indeed inside ~/.m2/repositories
>                  [org.clojure/core.logic "0.7.5"]
>                  ;[midje "1.4.0"]
>                  [seesaw "1.4.2"]
>                  ;[clojure-encog "0.4.1-SNAPSHOT"] ;not needed yet
>                  ]
>   :dev-dependencies [[midje "1.4.0"]]
>   :jvm-opts ["-Xmx2g" "-server"]
>   :warn-on-reflection true
>  ;:javac-options {:classpath "target/dependency/encog-core-3.1.0.jar"
> :destdir "target/classes"}
>  ;:java-source-path "src/java"
>  ;:main     Clondie24.games.chess
>  )
>
>
> Jim
>
>
>
>
> On 21/08/12 20:28, Nelson Morris wrote:
>>
>> Whats the project.clj look like?
>>
>> On Tue, Aug 21, 2012 at 2:25 PM, Jim - FooBar(); <jimpil1...@gmail.com>
>> wrote:
>>>
>>> I built clojure 1.5 snapshot from source and installed it in
>>> ~/.m2/repositories/org/clojure/ via 'mvn install' but now lein2 reverts
>>> to
>>> 1.3 after amending my project.clj!!! How can I make leiningen aware of
>>> the
>>> newly installed snaphot version?
>>>
>>> Jim
>>>
>>>
>>> On 21/08/12 19:49, Jim - FooBar(); wrote:
>>>>
>>>> Has clojure 1.5 apha3 been aot-compiled against java 6?
>>>>
>>>> Jim
>>>>
>>>> On 21/08/12 19:40, Jim - FooBar(); wrote:
>>>>>
>>>>> Hi everyone,
>>>>>
>>>>> I get this very strange error even though I'm using clojure 1.5 alpha3
>>>>> and java version "1.7.0_02" on Java HotSpot(TM) 64-Bit Server VM !
>>>>>
>>>>> ClassNotFoundException jsr166y.ForkJoinTask
>>>>>      java.net.URLClassLoader$1.run (URLClassLoader.java:366)
>>>>>      java.net.URLClassLoader$1.run (URLClassLoader.java:355)
>>>>>      java.security.AccessController.doPrivileged
>>>>> (AccessController.java:-2)
>>>>>      java.net.URLClassLoader.findClass (URLClassLoader.java:354)
>>>>>      java.lang.ClassLoader.loadClass (ClassLoader.java:423)
>>>>>      sun.misc.Launcher$AppClassLoader.loadClass (Launcher.java:308)
>>>>>      java.lang.ClassLoader.loadClass (ClassLoader.java:356)
>>>>>      clojure.core.reducers/fjinvoke (reducers.clj:61)
>>>>>      clojure.core.reducers/foldvec (reducers.clj:336)
>>>>>      clojure.core.reducers/fn--6587 (reducers.clj:352)
>>>>>      clojure.core.reducers/fn--6474/G--6469--6485 (reducers.clj:81)
>>>>>      clojure.core.reducers/fold (reducers.clj:98)
>>>>>
>>>>>
>>>>> I thought I did not need the jsr166y.jar under java 7...what is
>>>>> happening?
>>>>>
>>>>> Jim
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>> --
>>> 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
>
>
> --
> 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

-- 
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

Reply via email to