将库部署到 Clojars,得到 405
Deploying library to Clojars, get 405
我正在尝试将 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,但我不确定。
以前做过这件事的人可以指导我下一步该怎么做吗? Internet 上有文档,但我没有找到 'when you hit a 405, this is what you do next...'
可能jar已经部署到Clojars中了,所以可以忽略这个错误??
我不需要指定任何 PGP 证书,我预计会被问到。也许没有必要。
我使用的是 Linux 包管理器版本的 lein,它非常旧(lein -version
给出了 1.7.1)。我需要卸载它 (dpkg --remove leiningen
) 并手动安装它。 Leiningen 站点的 instructions 对此非常有效。我只是剪切并粘贴到一个名为 lein、chmod 等的文件中...
正如预期的那样,我现在收到的错误消息是关于 PGP 问题的...
我正在尝试将 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,但我不确定。
以前做过这件事的人可以指导我下一步该怎么做吗? Internet 上有文档,但我没有找到 'when you hit a 405, this is what you do next...'
可能jar已经部署到Clojars中了,所以可以忽略这个错误??
我不需要指定任何 PGP 证书,我预计会被问到。也许没有必要。
我使用的是 Linux 包管理器版本的 lein,它非常旧(lein -version
给出了 1.7.1)。我需要卸载它 (dpkg --remove leiningen
) 并手动安装它。 Leiningen 站点的 instructions 对此非常有效。我只是剪切并粘贴到一个名为 lein、chmod 等的文件中...
正如预期的那样,我现在收到的错误消息是关于 PGP 问题的...