0

我正在尝试按照本教程运行 Lift-2.4 Web 应用程序http://scala-ide.org/docs/tutorials/lift24scalaide20/index.html

问题是如何运行这个应用程序(在码头、tomcat 或其他服务器上)?!

我正在尝试命令 jetty-run,但出现此错误:

> jetty-run

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

当我做容器:开始时,我也有一个错误:

> container:start

[error] Not a valid key: start (similar: state, target, start-year)
[error] container:start
[error] 

           ^

我的配置是:

文件“build.sbt”包含:

name := "lift-basic"

organization := "my.company"

version := "0.1-SNAPSHOT"

scalaVersion := "2.9.1"

EclipseKeys.createSrc := EclipseCreateSrc.Default + EclipseCreateSrc.Resource

libraryDependencies ++= {
val liftVersion = "2.4"
Seq(
"net.liftweb" %% "lift-webkit" % liftVersion % "compile",
"net.liftweb" %% "lift-mapper" % liftVersion % "compile",
"org.mortbay.jetty" % "jetty" % "6.1.26" % "test",
"junit" % "junit" % "4.7" % "test",
"ch.qos.logback" % "logback-classic" % "0.9.26",
"org.scala-tools.testing" %% "specs" % "1.6.9" % "test",
"com.h2database" % "h2" % "1.2.147"
)
}

文件“.sbt/plugins/build.sbt”包含:

//Eclipse Plugin

resolvers += Classpaths.typesafeResolver

addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.0.0")
4

1 回答 1

1

听起来您需要xsbt-web-pluginsbt.

此处提供说明:https ://github.com/JamesEarlDouglas/xsbt-web-plugin/wiki

那应该为您提供container:start罐子包装。

于 2013-04-18T11:01:44.673 回答