2012-11-30 51 views
1

我在lein-heroku 0.1.1和lein 2中遇到了一些麻煩。lein-heroku 0.1.1與leiningen 2兼容嗎?

我在OS X Lion上從https://github.com/technomancy/leiningen/wiki/Upgrading重新安裝lein。

以下是命脈:

$ lein --version 
Leiningen 2.0.0-preview10 on Java 1.7.0_09 Java HotSpot(TM) 64-Bit Server VM 

$ cat ~/.lein/profiles.clj 
{:user {:plugins [ 
    [lein-heroku "0.1.1"] 
    [lein-difftest "2.0.0"] 
    [lein-pprint "1.1.1"] 
]}} 

$ lein help 
... 
leiningen.heroku Problem loading: Could not locate leiningen/main__init.class or leiningen/main.clj on classpath: 
... 

的其他插件加載成功。

這裏的類路徑:

$ lein repl 
user=> (println (seq (.getURLs (java.lang.ClassLoader/getSystemClassLoader)))) 
(#<URL file:/Users/bnorton/.lein/self-installs/leiningen-2.0.0-preview10-standalone.jar> 
#<URL file:/Users/bnorton/.m2/repository/org/clojure/core.cache/0.6.1/core.cache-0.6.1.jar> 
#<URL file:/Users/bnorton/.m2/repository/quoin/quoin/0.1.0/quoin-0.1.0.jar> 
#<URL file:/Users/bnorton/.m2/repository/lein-heroku/lein-heroku/0.1.1/lein-heroku-0.1.1.jar> 
#<URL file:/Users/bnorton/.m2/repository/stencil/stencil/0.3.0/stencil-0.3.0.jar> 
#<URL file:/Users/bnorton/.m2/repository/lein-pprint/lein-pprint/1.1.1/lein-pprint-1.1.1.jar> 
#<URL file:/Users/bnorton/.m2/repository/org/apache/httpcomponents/httpclient/4.1.2/httpclient-4.1.2.jar> 
#<URL file:/Users/bnorton/.m2/repository/slingshot/slingshot/0.8.0/slingshot-0.8.0.jar> 
#<URL file:/Users/bnorton/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar> 
#<URL file:/Users/bnorton/.m2/repository/org/apache/httpcomponents/httpcore/4.1.2/httpcore-4.1.2.jar> 
#<URL file:/Users/bnorton/.m2/repository/org/clojars/technomancy/heroku-http-apache/0.1-SNAPSHOT/heroku-http-apache-0.1-SNAPSHOT.jar> 
#<URL file:/Users/bnorton/.m2/repository/scout/scout/0.1.0/scout-0.1.0.jar> 
#<URL file:/Users/bnorton/.m2/repository/org/clojure/clojure/1.3.0/clojure-1.3.0.jar> 
#<URL file:/Users/bnorton/.m2/repository/lein-difftest/lein-difftest/2.0.0/lein-difftest-2.0.0.jar> 
#<URL file:/Users/bnorton/.m2/repository/org/clojure/tools.cli/0.2.1/tools.cli-0.2.1.jar> 
#<URL file:/Users/bnorton/.m2/repository/commons-codec/commons-codec/1.4/commons-codec-1.4.jar> 
#<URL file:/Users/bnorton/.m2/repository/bultitude/bultitude/0.1.7/bultitude-0.1.7.jar> 
#<URL file:/Users/bnorton/.m2/repository/com/google/code/gson/gson/1.7.1/gson-1.7.1.jar> 
#<URL file:/Users/bnorton/.m2/repository/org/clojars/technomancy/heroku-json-gson/0.1-SNAPSHOT/heroku-json-gson-0.1-SNAPSHOT.jar> 
#<URL file:/Users/bnorton/.m2/repository/lein-newnew/lein-newnew/0.3.5/lein-newnew-0.3.5.jar> 
#<URL file:/Users/bnorton/.m2/repository/org/clojars/technomancy/heroku-api/0.1-SNAPSHOT/heroku-api-0.1-SNAPSHOT.jar> 
#<URL file:/Users/bnorton/.m2/repository/doric/doric/0.6.0/doric-0.6.0.jar>) 

我缺少什麼?

回答

1

您可能需要從master獲取最新版本的lein-heroku。

提交日誌顯示支持Leiningen 2的一些更改,但是這些更新比上一版本更新。

見承諾:https://github.com/technomancy/lein-heroku/commits/master

+0

謝謝,我需要第二雙眼睛。來自主人的'lein install'和一切都很好。 –

0

已更新爲2.x的,但它沒有被保持了。由於啓動時間問題和不必要的重複工作,我建議使用Heroku Toolbelt代替。 http://toolbelt.herokuapp.com

+0

「Heroku入門Clojure」[Devcenter文章](http://devcenter.heroku.com/articles/clojure)提及[lein-template](https://github.com/technomancy/lein-heroku/樹/主/ lein-template),這實際上是我想要的lein-heroku插件。 'lein new heroku myapp'是一個非常方便的入門方式,但是可能有更簡單的方法來使模板可用。 –