首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >leiningen构建失败是由于重复性错误造成的

leiningen构建失败是由于重复性错误造成的
EN

Stack Overflow用户
提问于 2012-09-30 08:07:06
回答 1查看 853关注 0票数 2

我从一段时间以来一直在lein2工作,而且一直工作得很好。然而,今天麻烦开始了,无论我用lein2输入哪个命令,它都会给出下面的错误。我尝试删除~/.m2,在这种情况下,它再次下载dep,但最终给出了同样的错误。

我还尝试删除并再次下载lein2。以下是它给出的错误-

检查:依赖项和:输入库。指定的jar可能不在任何存储库中。如果是这样,请参阅http://j.mp/repeatability下的“自由浮动罐”无法解析依赖项。

无论项目或文件夹如何,都会发生错误。下面是我的~/..lein/profiles.clj. Below

代码语言:javascript
复制
{:user {:plugins [[lein-immutant "0.8.1"]
                  [lein-difftest "1.3.7"]
                  [lein-marginalia "0.7.1"]
                  [lein-pprint "1.1.1"]
                  [lein-swank "1.4.4"]
                  [lein-ring "0.7.5"]
                  [lein-cljsbuild "0.2.7"]
                  [lein-eclipse "1.0.0"]
                  [lein-git-deps "0.0.1-SNAPSHOT"]
                  [lein-outdated "0.1.0"]
                  [lein-noir "1.2.1"]
                  [lein-beanstalk "0.2.2"]
                  [lein-cloudbees "1.0.0"]
                  [lein-pedantic "0.0.3"]
                  [clj-ns-browser "1.3.0"]
                  [lein-ritz "0.4.2"]
                  [lein-midje "2.0.0-SNAPSHOT"]]}}

下面是project.clj文件-

代码语言:javascript
复制
(defproject hs-2 "0.1.0-SNAPSHOT"
  :description "FIXME: write description"
  :url "http://example.com/FIXME"
  :license {:name "Eclipse Public License"
            :url "http://www.eclipse.org/legal/epl-v10.html"}
  :dependencies [[org.clojure/clojure "1.4.0"]
                 [net.cgrand/moustache "1.1.0" :exclusions [org.clojure/clojure]]
                 [enlive "1.0.1" :exclusions [org.clojure/clojure]]
                 [ring "1.1.5"]
                 [clj-time "0.4.4"]
                 [clj-http "0.5.3"]
                 [org.thnetos/cd-client "0.3.4" :exclusions [[org.clojure/clojure] cheshire]]
                 [clojurewerkz/urly "1.0.0"]
                 [clj-airbrake "2.0.0"]]
  :profiles {:dev {:dependencies [[ring-serve "0.1.2"]
                                  [ring-mock "0.1.3"]
                                  [ritz/ritz-debugger "0.4.2"]
                                  [ritz/ritz-repl-utils "0.4.2"]
                                  [midje "1.4.0" :exclusions [org.clojure/clojure]]]}}
  :ring {:handler hs-2.routes/my-app}
  :repl-options {:init-ns hs-2.core
                 :init (do
                         (use 'hs-2.routes)
                         (use 'ring.util.serve)
                         (serve my-app)
                         (use 'ring.mock.request)
                         )}
  :resource-paths ["resources/public"]
  :pedantic :warn)
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-10-01 13:03:01

这是因为您正在使用快照依赖项。在shell或lein脚本中设置lein以覆盖此操作。

票数 5
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/12659707

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档