You are using swank aren't you ?

This is the completion library it uses. Check your lein default profile.
Maybe you requiring it there.

If you want to avoid this being included, create a lein profile like
prod or deploy and respecify your dependencies explicitly.

Use it then to package your target.

Luc P.


> 
> 
> I'm struggling a little with dependencies in lein for an artifact that
> is a dependency of a maven project. I have the following test sample
> working.
> 
> This is project.clj
> 
> 
> (defproject test-exclusion "0.1.0-SNAPSHOT"
>   :description "FIXME: write description"
>   :url "http://example.com/FIXME";
>   :license {:name "Eclipse Public License"
>             :url "http://www.eclipse.org/legal/epl-v10.html"}
>   :dependencies [[org.clojure/clojure "1.6.0"]
>                  [org.clojure/tools.nrepl "0.2.3"]])
> 
> 
> 
> lein deps :tree
> 
>  [clojure-complete "0.2.3" :exclusions [[org.clojure/clojure]]]
>  [org.clojure/clojure "1.6.0"]
>  [org.clojure/tools.nrepl "0.2.3" :exclusions [[org.clojure/clojure]]]
> 
> I don't understand where clojure-complete has come from here -- I've
> disabled profile.clj for the test so it's not that. Otherwise, the
> exclusions seem reasonable -- tools.nrepl specifies 1.2.0.
> 
> This generates the folling pom (which is what is used when maven starts).
> 
> 
> <dependencies>
>     <dependency>
>       <groupId>org.clojure</groupId>
>       <artifactId>clojure</artifactId>
>       <version>1.6.0</version>
>     </dependency>
>     <dependency>
>       <groupId>org.clojure</groupId>
>       <artifactId>tools.nrepl</artifactId>
>       <version>0.2.3</version>
>     </dependency>
>     <dependency>
>       <groupId>org.clojure</groupId>
>       <artifactId>tools.nrepl</artifactId>
>       <version>0.2.3</version>
>       <exclusions>
>         <exclusion>
>           <groupId>org.clojure</groupId>
>           <artifactId>clojure</artifactId>
>         </exclusion>
>       </exclusions>
>       <scope>test</scope>
>     </dependency>
>     <dependency>
>       <groupId>clojure-complete</groupId>
>       <artifactId>clojure-complete</artifactId>
>       <version>0.2.3</version>
>       <exclusions>
>         <exclusion>
>           <groupId>org.clojure</groupId>
>           <artifactId>clojure</artifactId>
>         </exclusion>
>       </exclusions>
>       <scope>test</scope>
>     </dependency>
>   </dependencies>
> 
> 
> Both clojure-complete and tools.nrepl appear twice, the second time in
> test scope with an exclusion. In many hands, this the second version
> wins. A downstream project which depends on this project will not
> include tools.nrepl as we are outside the test scope; this is breaking
> my application.
> 
> Have I messed up?
> 
> Phil
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to [email protected]
> Note that posts from new members are moderated - please be patient with your 
> first post.
> To unsubscribe from this group, send email to
> [email protected]
> 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 [email protected].
> For more options, visit https://groups.google.com/d/optout.
> 
--
Softaddicts<[email protected]> sent by ibisMail from my ipad!

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to