Leiningen uses the pomegranate 
library<https://github.com/cemerick/pomegranate>to manage dependencies and 
classpath. You can use this library from your 
project (or even the REPL) to load jars or put extra directories on the 
classpath, if you don't want to put them in your local repo.

Something like:

(require 'cemerick.pomegranate :as pom)
 (pom/add-classpath "/path/to/lib/dir/")

should do the trick.





On Wednesday, November 21, 2012 2:45:14 PM UTC+1, Dick Davies wrote:
>
> Thanks, that's helpful to know (I was a java dev a long time ago, 
> before Maven took over 
> the world), but really I wanted to isolate this hack to a specific 
> project directory, rather 
> than globallly. 
>
> On 21 November 2012 12:00, Jim foo.bar <jimpi...@gmail.com <javascript:>> 
> wrote: 
> > On 21/11/12 11:47, Dick Davies wrote: 
> >> 
> >> Also, is it possible to 'override' a given dependency to favour a local 
> >> JAR 
> >> over the 'official' maven one? 
> > 
> > 
> > just install the jar into your local maven repo (~/.m2/) (with 
> identifiable 
> > name)  and then pull it from whatever project you want. I think 
> Leiningen 
> > will look first in your .m2 dir and only if it cannot find the jar it 
> will 
> > ask maven, clojars etc etc...am I right? 
> > 
> > Jim 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> > Groups "Clojure" group. 
> > To post to this group, send email to clo...@googlegroups.com<javascript:> 
> > Note that posts from new members are moderated - please be patient with 
> your 
> > first post. 
> > To unsubscribe from this group, send email to 
> > clojure+u...@googlegroups.com <javascript:> 
> > 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 unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to