2013-05-25 44 views
0

我是新来的Scala和Lift和SBT。我从Liftsample applications克隆了Ecommerce example如何运行Lift的'电子商务示例'应用

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

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. 

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

回答

0

就我所见,该项目使用旧的SBT版本。旧的方式来启动Web应用程序是:

./sbt 
> jetty-start 
如果要重新加载源变化的应用

,使用~ jetty-start

注意,还有一个更为了这里最新liftweb项目例如:https://github.com/lift/lift_25_sbt

0

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

运行以下命令

> sbt 
> update 

现在SBT应该下载requried jar文件

>jetty-run 

现在SBT应该编译和运行网络应用程序。