Skip to content

Instantly share code, notes, and snippets.

@thickey
Created March 8, 2012 14:54
Show Gist options
  • Save thickey/2001365 to your computer and use it in GitHub Desktop.
Save thickey/2001365 to your computer and use it in GitHub Desktop.
Lein not finding clojars artifacts
  • lein2 version (grabbed prior to adding plugins to profiles.clj): Leiningen 2.0.0-preview1 on Java 1.6.0_26 Java HotSpot(TM) 64-Bit Server VM
  • this same setup works on one machine and not another
  • swap [lein-swank "1.4.3"] for [lein-immutant "0.5.2"] or any other clojars artifacts and it still fails
{:user {:plugins [[lein-swank "1.4.3"]]}}
$ lein2 version
Exception in thread "main" java.lang.RuntimeException: org.sonatype.aether.resolution.DependencyResolutionException: Could not find artifact lein-swank:lein-swank:jar:1.4.3
at clojure.lang.Util.runtimeException(Util.java:165)
at clojure.lang.Reflector.invokeInstanceMethod(Reflector.java:35)
at cemerick.pomegranate.aether$resolve_dependencies.doInvoke(aether.clj:359)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invoke(core.clj:600)
at cemerick.pomegranate$add_dependencies.doInvoke(pomegranate.clj:98)
at clojure.lang.RestFn.invoke(RestFn.java:805)
at leiningen.core.classpath$resolve_dependencies.doInvoke(classpath.clj:96)
at clojure.lang.RestFn.invoke(RestFn.java:464)
at leiningen.core.project$load_plugins.invoke(project.clj:187)
at leiningen.core.project$load_plugins.invoke(project.clj:188)
at leiningen.core.main$_main.doInvoke(main.clj:119)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.lang.Var.invoke(Var.java:401)
at clojure.lang.AFn.applyToHelper(AFn.java:161)
at clojure.lang.Var.applyTo(Var.java:518)
at clojure.core$apply.invoke(core.clj:600)
at clojure.main$main_opt.invoke(main.clj:323)
at clojure.main$main.doInvoke(main.clj:426)
at clojure.lang.RestFn.invoke(RestFn.java:436)
at clojure.lang.Var.invoke(Var.java:409)
at clojure.lang.AFn.applyToHelper(AFn.java:167)
at clojure.lang.Var.applyTo(Var.java:518)
at clojure.main.main(main.java:37)
Caused by: org.sonatype.aether.resolution.DependencyResolutionException: Could not find artifact lein-swank:lein-swank:jar:1.4.3
at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:375)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at clojure.lang.Reflector.invokeMatchingMethod(Reflector.java:92)
at clojure.lang.Reflector.invokeInstanceMethod(Reflector.java:30)
... 22 more
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not find artifact lein-swank:lein-swank:jar:1.4.3
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:358)
... 28 more
Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not find artifact lein-swank:lein-swank:jar:1.4.3
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:528)
... 30 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment