【问题标题】:Translating Lightbend activator to sbt将 Lightbend 激活器翻译为 sbt
【发布时间】:2018-06-10 00:44:04
【问题描述】:

我正在尝试阅读 Reactive Web Applications 这本书,但它似乎已经有点过时了,因为 lightbend 激活器已经停产,所以我无法下载它(或者至少不能弄清楚如何做,即使我可以也不应该做)。

我面临创建新项目的问题,在书中将通过命令完成

activator new twitter-stream play-scala-2.4

我尝试了我认为等效的 sbt 命令,但出现以下错误。

urban:playground dhosek$ sbt new playframework/play-scala-seed.g8
[info] Set current project to playground (in build         
file:/Users/dhosek/playground/)
[error] Not a valid command: new (similar: set)
[error] Not a valid project ID: new
[error] Expected ':' (if selecting a configuration)
[error] Not a valid key: new (similar: name, run, runner)
[error] new
[error]    ^

有什么帮助吗?

【问题讨论】:

    标签: sbt typesafe-activator


    【解决方案1】:

    看来问题在于 brew 安装的是旧版本的 sbt。

    【讨论】:

    • 确实,这是正确答案,你需要更新 sbt 才能使用新命令。
    猜你喜欢
    • 2018-05-14
    • 2014-09-25
    • 1970-01-01
    • 2014-10-08
    • 1970-01-01
    • 1970-01-01
    • 2018-02-05
    • 1970-01-01
    • 2014-11-09
    相关资源
    最近更新 更多