【发布时间】: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 证书,我预计会被询问。也许没有必要。
【问题讨论】: