【问题标题】:Just downloaded the Scala Lift chat application and use the instructions to run it, but it fails刚刚下载了 Scala Lift 聊天应用程序并使用说明运行它,但它失败了
【发布时间】:2013-07-30 17:56:10
【问题描述】:

我从以下位置克隆了项目:

https://github.com/dpp/simply_lift.git

然后我按照说明进行操作:

Change directories into the chat directory and type sbt update ~jetty-run.

SBT 获取依赖项,然后我得到这个:

[error] Not a valid command: jetty-run
[error] Expected '/'
[error] Expected ':'
[error] Not a valid key: jetty-run (similar: run)
[error] jetty-run
[error]

现在呢?

【问题讨论】:

    标签: scala sbt lift


    【解决方案1】:

    在高于 0.10.0 的 SBT 版本中,~jetty-run 已被删除以支持:

    container:start
    container:stop
    deployment // compiles the changes made while jetty is running.
    

    【讨论】:

      【解决方案2】:

      您应该使用打包存档 (./sbt) 中的 sbt。而不是系统范围的 SBT(可能是新的)。

      无论如何,我建议使用新的 SBT 和一切新的东西。这是一个项目的官方和良好的起点:https://github.com/lift/lift_25_sbt/ (我个人使用它,我对它的工作原理很满意)

      【讨论】:

      • 我确实使用了打包好的 ./sbt 还是失败了。
      猜你喜欢
      • 1970-01-01
      • 2016-03-20
      • 1970-01-01
      • 1970-01-01
      • 2011-10-01
      • 2010-11-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多