0
我得到警告的一堆這樣的:不能編譯了Scalatra 2.2.2與2.9.1斯卡拉
[warn] module not found: org.scalatra#scalatra_2.9.1;2.2.2
[warn] ==== local: tried
[warn] /Users/newuser/.ivy2/local/org.scalatra/scalatra_2.9.1/2.2.2/ivys/ivy.xml
[warn] ==== public: tried
最後我得到這個異常:
sbt.ResolveException: unresolved dependency: org.scalatra#scalatra_2.9.1;2.2.2: not found
unresolved dependency: org.scalatra#scalatra-scalate_2.9.1;2.2.2: not found
unresolved dependency: org.scalatra#scalatra-specs2_2.9.1;2.2.2: not found
at sbt.IvyActions$.sbt$IvyActions$$resolve(IvyActions.scala:217)
at sbt.IvyActions$$anonfun$update$1.apply(IvyActions.scala:126)
at sbt.IvyActions$$anonfun$update$1.apply(IvyActions.scala:125)
[...]
這是我如何配置我的項目:
bash-3.2$ g8 scalatra/scalatra-sbt
organization [com.example]:
name [My Scalatra Web App]:
version [0.1.0-SNAPSHOT]:
servlet_name [MyScalatraServlet]:
package [com.example.app]:
scala_version [2.11.1]: 2.9.1
sbt_version [0.13.5]:
scalatra_version [2.3.0]: 2.2.2
我做錯了什麼?
我只能使用2.9.1 – Tutankhamen 2014-08-29 21:44:11
順便說一句,根據http://www.scalatra.org/,scalatra 2.2.x應該與scala 2.9.x兼容 – Tutankhamen 2014-08-30 00:48:22