Open jackjliew opened 3 years ago
I'm using Nexus as a private maven mirror, but I can not use ancient to upgrade any packages after the mirror is configured.
cat ~/.lein/profiles.clj
{:user {:mirrors {#".+" "https://nexus.icc/repository/maven-public/"} :certificates ["/Users/jack/scripts/icc-cert/rootCA_cert.pem"] :plugins [[org.clojure/core.unify "0.5.7"] [lein-ancient "0.7.0"]]}}
[org.clojure/clojure ^[[32m"1.10.3"^[[m] is available but we use ^[[33m"1.10.1"^[[m ^[[34m(use :check-clojure to upgrade)^[[m [clj-http ^[[32m"3.12.1"^[[m] is available but we use ^[[33m"3.12.0"^[[m ^[[31m(error)^[[m #error { :cause "Multiple mirrors configured to match repository {\"central\" \"https://repo1.maven.org/maven2/\"}: {#\".+\" {:url \"https://nexus.icc/repository/maven-public/\"}}" :via [{:type java.lang.IllegalArgumentException :message "Multiple mirrors configured to match repository {\"central\" \"https://repo1.maven.org/maven2/\"}: {#\".+\" {:url \"https://nexus.icc/repository/maven-public/\"}}" :at [cemerick.pomegranate.aether$mirror_selector_fn invokeStatic "aether.clj" 499]}] :trace [[cemerick.pomegranate.aether$mirror_selector_fn invokeStatic "aether.clj" 499] [cemerick.pomegranate.aether$mirror_selector_fn invoke "aether.clj" 479] [clojure.core$partial$fn5839 invoke "core.clj" 2624] [clojure.lang.AFn applyToHelper "AFn.java" 154] [clojure.lang.RestFn applyTo "RestFn.java" 132] [clojure.core$apply invokeStatic "core.clj" 665] [clojure.core$memoize$fn6877 doInvoke "core.clj" 6353] [clojure.lang.RestFn invoke "RestFn.java" 408] [cemerick.pomegranate.aether$mirror_selector$reify__303 getMirror "aether.clj" 515] [jdk.internal.reflect.NativeMethodAccessorImpl invoke0 "NativeMethodAccessorImpl.java" -2] [jdk.internal.reflect.NativeMethodAccessorImpl invoke "NativeMethodAccessorImpl.java" 62] [jdk.internal.reflect.DelegatingMethodAccessorImpl invoke "DelegatingMethodAccessorImpl.java" 43] [java.lang.reflect.Method invoke "Method.java" 566] [clojure.lang.Reflector invokeMatchingMethod "Reflector.java" 167] [clojure.lang.Reflector invokeInstanceMethod "Reflector.java" 102] [cemerick.pomegranate.aether$resolve_dependenciesSTAR$fn373 invoke "aether.clj" 805] [clojure.core$map$fn5866 invoke "core.clj" 2755] [clojure.lang.LazySeq sval "LazySeq.java" 42] [clojure.lang.LazySeq seq "LazySeq.java" 51] [clojure.lang.RT seq "RT.java" 535] [clojure.lang.LazilyPersistentVector create "LazilyPersistentVector.java" 44] [clojure.core$vec invokeStatic "core.clj" 377] [clojure.core$vec invoke "core.clj" 367] [cemerick.pomegranate.aether$resolve_dependenciesSTAR invokeStatic "aether.clj" 802] [cemerick.pomegranate.aether$resolve_dependenciesSTAR doInvoke "aether.clj" 711] [clojure.lang.RestFn applyTo "RestFn.java" 137] [clojure.core$apply invokeStatic "core.clj" 665] [clojure.core$apply invoke "core.clj" 660] [cemerick.pomegranate.aether$resolve_dependencies invokeStatic "aether.clj" 819] [cemerick.pomegranate.aether$resolve_dependencies doInvoke "aether.clj" 813] [clojure.lang.RestFn applyTo "RestFn.java" 137] [clojure.core$apply invokeStatic "core.clj" 665]
@jackjliew Thanks for reporting! Could you try [lein-ancient "1.0.0-RC3"]? The whole repository handling has been improved and your problem might already be solved in that version. :)
[lein-ancient "1.0.0-RC3"]
I'm using Nexus as a private maven mirror, but I can not use ancient to upgrade any packages after the mirror is configured.
cat ~/.lein/profiles.clj
{:user {:mirrors {#".+" "https://nexus.icc/repository/maven-public/"} :certificates ["/Users/jack/scripts/icc-cert/rootCA_cert.pem"] :plugins [[org.clojure/core.unify "0.5.7"] [lein-ancient "0.7.0"]]}}