5

我的问题是 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 有某种冲突。

4

1 回答 1

3

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

leiningen 示例 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}}
于 2013-05-10T14:57:50.197 回答