我收到了大量警告:
[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
我做错了吗?
答案 0 :(得分:0)
尝试使用Scala 2.9.2?我认为Scalatra 2.2.2不适合2.9.1。