我无法让leiningen下载datomic-pro对等库。我有以下设置:lein在mac上安装datomic peer库
~/.lein/credentials.clj.gpg
{#"my\.datomic\.com" {:username "..."
:password "..."}}
而该项目
(defproject datomic-example "0.1.0-SNAPSHOT"
:repositories {"my.datomic.com" {:url "https://my.datomic.com/repo"
:creds :gpg}}
:dependencies [[org.clojure/clojure "1.6.0"]
[com.datomic/datomic-pro "0.9.4956"]])
我通过brew install gpg
安装GPG,然后运行lein deps
给了我以下错误:
Could not decrypt credentials from /Users/.../.lein/credentials.clj.gpg
gpg: no valid OpenPGP data found.
gpg: decrypt_message failed: eof
See `lein help gpg` for how to install gpg.
(Could not transfer artifact com.datomic:datomic-pro:pom:0.9.4956 from/to my.datomic.com (https://my.datomic.com/repo): Not authorized , ReasonPhrase:Unauthorized.)
This could be due to a typo in :dependencies or network issues.
If you are behind a proxy, try setting the 'http_proxy' environment variable.
注:我创建了一个pom.xml/settings.xml
如主页上所述,立即与maven
工作。我也知道我可以直接从datomic/bin/maven-install
安装对等库,但我更喜欢简单的leiningen
安装。
试过这个,我仍然得到这个:“不能传递工件com.datomic:datomic-pro:pom:0.9.5206 from/to my.datomic.com(https://my.datomic.com/repo):未经授权,ReasonPhrase:未经授权。 这可能是由于以下方面的错误:依赖性或网络问题。 如果你在代理的后面,试着设置'http_proxy'的环境变量。“ – letronje 2015-09-03 04:00:44
@letronje你有没有想过呢?我得到的东西在流浪汉上运行的一样 – Kendall 2016-07-07 15:35:11