if I enable eith the clojure-couchdb or swank-clojure then lein deps fails because org.apache.maven:super-pom:jar:2.0 is missing
:dependencies [[org.clojure/clojure "1.1.0-master-SNAPSHOT"]
[org.clojure/clojure-contrib "1.0-SNAPSHOT"]
[clojure-http-client "1.0.0-SNAPSHOT"]
[org.apache.activemq/activemq-core "5.3.0"]
; [org.clojars.the-kenny/clojure-couchdb "0.1.3"]
; [org.clojure/swank-clojure "1.1.0"]
])
this error:
Path to dependency:
1) org.apache.maven:super-pom:jar:2.0
2) org.clojure:swank-clojure:jar:1.1.0
----------
1 required artifact is missing.
for artifact:
org.apache.maven:super-pom:jar:2.0
from the specified remote repositories:
clojars (http://clojars.org/repo/),
clojure-snapshots (http://build.clojure.org/snapshots),
central (http://repo1.maven.org/maven2)
what is super-pom. why do these packages need it and where can I get it.
I think this just means that Maven wasn’t able to satisfy the dependencies you specified. I’ve checked there’s no
org.clojure/swank-clojureartifact in any of the three repositories your message mentions. For clojure-couchdb, the version you’re using — as far as I can tell from looking at its project.clj file on GitHub — depends onorg.clojure/clojure-http-client "1.0.0-SNAPSHOT", which doesn’t exist in the repos either.One way around this problem is to install the jars you want into your local repo. (
I can’t seem to remember the exact command… will look it up in a minute.See e.g. this page for instructions.) Then Maven will just pick them up from there.(BTW, if you want to use Clojure + contrib 1.1.0, you can just use
"1.1.0"as the version strings now. That’s for bothorg.clojure/clojureandorg.clojure/clojure-contrib.)Oh, and about the super POM — from this page in Maven’s docs:
As for how it got into your error message, I’ve honestly no idea. You could add the “maven” tag to this question or just ask a separate question with that tag to get some Maven gurus onto it.