gpt4 book ai didi

maven - leiningen的maven用法怎么配置?

转载 作者:行者123 更新时间:2023-12-01 14:23:24 26 4
gpt4 key购买 nike

我的问题是 leiningen 无法在我的计算机上运行。我收到这样的错误:

Could not transfer artifact lein-ring:lein-ring:pom:0.4.5 from/to central (http://repo1.maven.org/maven2): Connection to http://repo1.maven.org r
Could not transfer artifact lein-ring:lein-ring:pom:0.4.5 from/to clojars (https://clojars.org/repo/): Connection to https://clojars.org refused

我认为问题在于我在我的 maven 安装的 settings.xml 中配置了一个镜像。我如何告诉 leiningen 使用嵌入式 maven 或其他没有自定义配置的 maven 安装?

我正在将 maven 用于其他 java 项目,它与 leiningen 以某种方式发生冲突。

最佳答案

您可以将镜像定义添加到 project.clj或者,在这种情况下可能更好,到 ~/.lein/profiles.clj
详情在leiningen sample project.clj

但这是关键点:

:mirrors {"central" {:name "Ibiblio"
:url "http://mirrors.ibiblio.org/pub/mirrors/maven2"}
#"clojars" {:name "Internal nexus"
:url "http://mvn.local/nexus/releases"
:repo-manager true}}

关于maven - leiningen的maven用法怎么配置?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16481227/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com