2

我是 sbt 的新手,我将使用 jsf 2.0 mojarra 和 icefaces 生成一个 Web 应用程序,但我不知道如何构建 build.sbt。我尝试这样的事情:

libraryDependencies += "org.icefaces" % "icefaces" % "2.0.2"
libraryDependencies += "net.java" % "jsf-api" % "2.1.2"
libraryDependencies += "net.java" % "jsf-impl" % "2.1.2"

也许这是可怕的错误并且 sbt 找不到模块:

未找到模块:com.sun.faces#jsf-impl:2.1.1-b04/ivys/ivy.xml

4

1 回答 1

2
resolvers += "java.net maven 2 repo" at "http://download.java.net/maven/2" 

libraryDependencies += "org.icefaces" % "icefaces" % "2.0.2"

libraryDependencies += "com.sun.faces" % "jsf-api" % "2.1.2"

libraryDependencies += "com.sun.faces" % "jsf-impl" % "2.1.2"

这仅适用于 sbt 0.10+。确保在表达式之间保留空白行。

于 2011-08-12T21:13:40.630 回答