Heroku无法建立并推动Clojure项目

时间:2016-02-27 23:24:00

标签: git heroku clojure

当我尝试git push heroku master

时,我遇到以下错误
remote: Retrieving ring/ring-jetty-adapter/1.4.0/ring-jetty-adapter-1.4.0.jar from clojars
remote: Could not transfer artifact clj-http:clj-http:pom:2.1.0 from/to clojars (https://clojars.org/repo/): Error occurred while retrieving from  remote repository Repository[clojars|https://clojars.org/repo/]: Not in GZIP format
remote: Could not transfer artifact clj-json:clj-json:pom:0.5.3 from/to clojars (https://clojars.org/repo/): Error occurred while retrieving from remote repository Repository[clojars|https://clojars.org/repo/]: Not in GZIP format
remote: Could not transfer artifact clojure-csv:clojure-csv:pom:2.0.2 from/to clojars (https://clojars.org/repo/): Error occurred while retrieving from remote repository Repository[clojars|https://clojars.org/repo/]: Not in GZIP format
remote: Could not transfer artifact enlive:enlive:pom:1.1.6 from/to clojars (https://clojars.org/repo/): Error occurred while retrieving from remote repository Repository[clojars|https://clojars.org/repo/]: Not in GZIP format
remote: Could not transfer artifact hiccup:hiccup:pom:1.0.5 from/to clojars (https://clojars.org/repo/): Error occurred while retrieving from remote repository Repository[clojars|https://clojars.org/repo/]: Not in GZIP format
remote: Could not transfer artifact tinter:tinter:pom:0.1.1-20120609.171400-1 from/to clojars (https://clojars.org/repo/): Error occurred while retrieving from remote repository Repository[clojars|https://clojars.org/repo/]: Not in GZIP format
remote: Could not transfer artifact clj-time:clj-time:pom:0.11.0 from/to clojars (https://clojars.org/repo/): Error occurred while retrieving from remote repository Repository[clojars|https://clojars.org/repo/]: Not in GZIP format
remote: Could not transfer artifact jayq:jayq:pom:2.5.4 from/to clojars (https://clojars.org/repo/): Error occurred while retrieving from remote repository Repository[clojars|https://clojars.org/repo/]: Not in GZIP format
remote: Could not transfer artifact midje:midje:pom:1.8.3 from/to clojars (https://clojars.org/repo/): Error occurred while retrieving from remote repository Repository[clojars|https://clojars.org/repo/]: Not in GZIP format
remote: Could not transfer artifact ring-mock:ring-mock:pom:0.1.5 from/to clojars (https://clojars.org/repo/): Error occurred while retrieving from remote repository Repository[clojars|https://clojars.org/repo/]: Not in GZIP format
remote: Could not transfer artifact print-foo:print-foo:pom:1.0.2 from/to clojars (https://clojars.org/repo/): Error occurred while retrieving from remote repository Repository[clojars|https://clojars.org/repo/]: Not in GZIP format
remote: This could be due to a typo in :dependencies or network issues.
remote:
remote:  !     Push rejected, failed to compile Clojure (Leiningen 2) app

我的BUILDPACK_URL:https://github.com/kolov/heroku-buildpack-clojure

我看了@以下解决方案:Heroku Push Rejected some references to some heroku app I don't have但它似乎没有帮助。

1 个答案:

答案 0 :(得分:1)

看起来你正在使用一个分叉的buildpack,它比官方的Heroku buildpack(3年)要老得多。您的buildpack也使用了旧版本的Leiningen。

我建议通过运行:

切换到默认的buildpack
$ heroku buildpacks:set heroku/clojure

或者通过将this line更改为:

升级您的自定义构建包以使用较新的Lein版本
LEIN_VERSION="2.6.1"

希望有所帮助