Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to run upgrade when private maven mirror is configured. #122

Open
jackjliew opened this issue Apr 15, 2021 · 1 comment
Open

Failed to run upgrade when private maven mirror is configured. #122

jackjliew opened this issue Apr 15, 2021 · 1 comment

Comments

@jackjliew
Copy link

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$fn__5839 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$fn__6877 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_dependencies_STAR_$fn__373 invoke "aether.clj" 805]
[clojure.core$map$fn__5866 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_dependencies_STAR_ invokeStatic "aether.clj" 802]
[cemerick.pomegranate.aether$resolve_dependencies_STAR_ 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]

@xsc
Copy link
Owner

xsc commented Apr 15, 2021

@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. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants