在Scalatra项目中找不到webSettings错误

时间:2011-12-05 11:25:02

标签: scala sbt scalatra

我有一个包含以下build.sbt

的Scalatra项目
organization := "com.example"

name := "scalatra-project"

version := "0.1.0-SNAPSHOT"

scalaVersion := "2.9.1"

seq(webSettings :_*)

libraryDependencies ++= Seq(
  "org.scalatra" %% "scalatra" % "2.0.1",
  "org.scalatra" %% "scalatra-scalate" % "2.0.1",
  "org.scalatra" %% "scalatra-specs" % "2.0.2",
  "org.scala-tools.testing" %% "specs" % "1.6.9",
  "org.eclipse.jetty" % "jetty-webapp" % "7.4.5.v20110725" % "container",
  "javax.servlet" % "servlet-api" % "2.5" % "provided",
  "net.liftweb" %% "lift-json" % "2.4-SNAPSHOT",
  "net.liftweb" %% "lift-mongodb" % "2.4-M5",
  "net.liftweb" %% "lift-mongodb-record" % "2.4-M5"
)

resolvers += "Sonatype OSS Snapshots" at "http://oss.sonatype.org/content/repositories/snapshots/"

resolvers += "Scala Tools Snapshots" at "http://scala-tools.org/repo-snapshots/"

resolvers += "Scala Tools Releases" at "http://scala-tools.org/repo-releases/"

resolvers += "Maven Repo" at "http://repo1.maven.org/maven2"

当我运行sbt时,我收到以下错误:

error: not found: value webSettings seq(webSettings :_*)

如何解决此问题?

1 个答案:

答案 0 :(得分:2)

检查此处https://github.com/siasia/xsbt-web-plugin

中提到的插件设置