【问题标题】:Deploying library to Clojars, get 405将库部署到 Clojars,得到 405
【发布时间】:2016-02-15 05:09:42
【问题描述】:

我正在尝试将 lein 项目部署到 Clojars:

$ lein deploy clojars
Copying 32 files to /home/chris/IdeaProjects/default-db-format/lib
No namespaces to :aot compile listed in project.clj.
Created /home/chris/IdeaProjects/default-db-format/default-db-format-0.1.0.jar
Wrote pom.xml
Deploying to http://clojars.org/repo/
Uploading: default-db-format/default-db-format/0.1.0/default-db-format-0.1.0.jar to repository clojars at http://clojars.org/repo/
Transferring 13K from clojars
An error has occurred while processing the Maven artifact tasks.
 Diagnosis:

Error deploying artifact 'default-db-format:default-db-format:jar':   Error deploying artifact: Failed to transfer file: http://clojars.org/repo/default-db-format/default-db-format/0.1.0/default-db-format-0.1.0.jar. Return code is: 405

这似乎是来自 Maven 的错误。我猜我需要通过here 的步骤,但我不确定。

之前做过这件事的人可以指导我下一步该怎么做吗?互联网上有文档,但我没有发现任何内容说“当您遇到 405 时,这就是您接下来要做的......”

也许jar已经部署到Clojars,因此可以忽略错误??

我不需要指定任何 PGP 证书,我预计会被询问。也许没有必要。

【问题讨论】:

    标签: clojure leiningen


    【解决方案1】:

    我使用的是 Linux 包管理器的 lein 版本,它非常旧(lein -version 提供 1.7.1)。我需要卸载它(dpkg --remove leiningen)并手动安装它。 Leiningen 网站上的instructions 非常适合这一点。我只是剪切并粘贴到一个名为 lein、chmod 等的文件中......

    我现在收到的错误消息是关于 PGP 问题的,正如预期的那样......

    【讨论】:

      猜你喜欢
      • 2017-07-23
      • 2013-06-14
      • 1970-01-01
      • 2020-05-15
      • 2020-12-25
      • 2020-12-07
      • 1970-01-01
      • 2018-03-01
      • 2015-10-06
      相关资源
      最近更新 更多