【问题标题】:How to configure leiningen's maven usage?如何配置leiningen的maven用法?
【发布时间】:2013-05-05 01:51:06
【问题描述】:

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

【问题讨论】:

    标签: maven clojure leiningen


    【解决方案1】:

    您可以将镜像定义添加到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}}
    

    【讨论】:

    • 这不起作用。我犯了同样的错误。连接被拒绝:(
    • 你也需要代理规范吗?
    猜你喜欢
    • 1970-01-01
    • 2013-01-23
    • 2013-04-01
    • 2013-08-20
    • 2014-09-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-04-13
    相关资源
    最近更新 更多