【问题标题】:Can't get sbt to work with scalatra template for google app engine无法让 sbt 使用谷歌应用引擎的 scalatra 模板
【发布时间】:2011-12-13 04:40:09
【问题描述】:

我正在尝试使用以下模板设置 scalatra 以使用应用引擎:https://github.com/mtkopone/sbt-scalatra-appengine-template 和自述文件中的说明。在终端中输入 sbt 后出现此错误:

                ::::::::::::::::::::::::::::::::::::::::::::::

            ::          UNRESOLVED DEPENDENCIES         ::

            ::::::::::::::::::::::::::::::::::::::::::::::

            :: org.scala-tools.sbt#sbt_2.9.1;0.7.4: not found

            ::::::::::::::::::::::::::::::::::::::::::::::

我使用的是 xubuntu 11.10。有什么解决办法吗?

【问题讨论】:

  • sbt about 吐了什么?
  • 你的build.sbt文件也会有帮助:)
  • sbt about 给了我这个[info] Set current project to default-acd7f1 (in build file:/home/stamp/bin/) [info] This is sbt 0.11.0 [info] The current project is {file:/home/stamp/bin/}default-acd7f1 [info] The current project is built against Scala 2.9.1 [info] sbt, sbt plugins, and build definitions are using Scala 2.9.1 [info] All logging output for this session is available at /tmp/sbt5136869890546389897.log
  • 和你的build.sbt?我的猜测是你强迫 sbt 使用旧版本,这与 scala 2.9 不兼容(scala 有时不向后二进制兼容)
  • 在哪里可以找到它?我已经从这里安装了sbt github.com/harrah/xsbt/wiki/Getting-Started-Setup

标签: scala sbt


【解决方案1】:

您的 project/build.properties 正在强制 SBT 使用版本 0.7.4

要么下载并使用与模板兼容的older version of SBT,要么尝试修改 SBT 0.11 的构建。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-01-02
    • 1970-01-01
    • 1970-01-01
    • 2011-01-11
    • 2012-03-09
    • 1970-01-01
    • 2011-08-06
    相关资源
    最近更新 更多