【发布时间】:2013-05-20 23:02:59
【问题描述】:
我是 Scala、Lift 和 SBT 的新手。我已经从Lift 的sample applications 克隆了Ecommerce example。
现在我想简单地运行应用程序。
Documentation says,container:start 应该启动应用程序。但我收到错误:
> container:start
[error] No action named 'container:start' exists.
[info] Execute 'help' for a list of commands or 'actions' for a list of available project actions and methods.
[info]
[info] Total time: 0 s, completed 25.05.2013 16:47:05
我猜可能是因为版本不同。
[info] using LiftProject with sbt 0.7.5 and Scala 2.7.7
如何启动此应用程序? 如果是版本差异导致的,是否可以将应用程序升级到最新的 sbt 和 scala 版本?
更新
我尝试使用jetty-start 并收到另一个错误:
> jetty-start
[error] No action named 'jetty-start' exists.
[info] Execute 'help' for a list of commands or 'actions' for a list of available project actions and methods.
我还从 sbt help 找到了另一个类似的命令 jetty-run。当我运行它时,我得到了大量的编译错误。看来我的 scala 2.9.2 无法编译代码。
【问题讨论】: