我正在尝试按照本教程http://scala-ide.org/docs/tutorials/lift24scalaide20/index.html
运行Lift-2.4网络应用问题是如何运行此应用程序(在jetty,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")
答案 0 :(得分:1)
听起来您需要为xsbt-web-plugin
安装sbt
插件。
可在此处获取说明:https://github.com/JamesEarlDouglas/xsbt-web-plugin/wiki
这应该为您提供container:start
以及jar包装。