'lein deps' deletes the lib directiory whenever it runs, and this is the
expected behavior. 'lein jar' runs deps first, so that's why lib is
disappearing. This shouldn't be a problem if all of your dependencies are
specified in project.clj; deps should just repopulate a fresh lib directory.
If you have dependencies not listed in project.clj, the README FAQ section
entitled "What if my project depends on jars that aren't in any repository?"
will be of interest to you.

Feel free to post on leinin...@googlegroups.com if you still need some help.
*
*
On Thu, Oct 21, 2010 at 7:46 AM, hsarvell <hsarv...@gmail.com> wrote:

> I'm trying to compile my project with Leiningen 1.3.1, the compile
> fails but that is another story. My main problem right now is that the
> lib folder disappears. I'd like to be able to do lein jar (or try)
> without it disappearing.
>
> My project.clj looks like this:
>
> (defproject project "0.1"
>    :description "project description"
>    :javac-fork "true"
>    :repositories [["clojars" "http://clojars.org/repo";]]
>    :dependencies [[org.clojure/clojure "1.1.0"]
>                     [org.clojure/clojure-contrib "1.1.0"]
>                     [ring/ring-core "0.2.0"]
>                     [ring/ring-jetty-adapter "0.2.0"]
>                     [compojure "0.4.0-SNAPSHOT"]
>                     [hiccup "0.2.5"]
>                     [clojure-http-client "1.0.0"]
>                     [sandbar/sandbar "0.2.3"]]
>    :dev-dependencies [[ring/ring-devel "0.2.0"]]
>    :namespaces [project.index])
>
> --
> 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<clojure%2bunsubscr...@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