将库部署到Clojars,获得405

时间:2016-02-15 05:09:43

标签: clojure leiningen

我正在尝试将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证书,我希望被问到这些证书。也许没有必要。

1 个答案:

答案 0 :(得分:1)

我使用的是Linux软件包管理器的lein版本,它很老(lein -version给出了1.7.1)。我需要卸载它(dpkg --remove leiningen)并手动安装它。 Leiningen工厂的instructions完美地为此工作。我只是剪切并粘贴到一个名为lein,chmod等的文件中......

我现在得到的错误消息是关于PGP问题,正如所料......