0

我是 Scala 和 Lift 和 SBT 的新手。我已经从示例应用程序中克隆了电子商务示例Lift

现在我想简单地运行应用程序。

文档说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.

我还jetty-run从 sbt找到了另一个类似的命令help。当我运行它时,我得到了大量的编译错误。看来我的 scala 2.9.2 无法编译代码。

4

2 回答 2

0

据我所知,这个项目使用旧的 SBT 版本。启动 Web 应用程序的旧方法是:

./sbt
> jetty-start

如果您想在源更改时重新加载应用程序,请使用~ jetty-start

请注意,这里有一个更新得多的 liftweb 项目示例:https ://github.com/lift/lift_25_sbt

于 2013-05-25T17:12:10.377 回答
0

可能 sbt 没有下载所需的 jar 文件。

运行以下命令

> sbt 
> update

现在 sbt 应该下载所需的 jar 文件

>jetty-run

现在 sbt 应该编译并运行 web-app。

于 2013-05-29T06:38:23.017 回答