0
即使在SBT中添加了依賴項後,我仍無法訪問xmlbeans。SBT/Ivy:xmlbeans庫即使在添加到依賴項列表後也未檢測到
這裏是我的build.sbt
name := "xmlbeans"
version := "1.0"
scalaVersion := "2.11.5"
libraryDependencies += "stax" % "stax-api" % "1.0.1"
libraryDependencies += "org.apache.xmlbeans" % "xmlbeans" % "2.6.0"
這裏是我的代碼:
import org.apache.xmlbeans._
object Main {
def main(args: Array[String]) = {
println("hi")
}
}
運行sbt run
我進行sbt update
之後,當我得到的錯誤信息:
src/main/scala/Main.scala:5: object apache is not a member of package org
[error] import org.apache.xmlbeans._
有沒有我想念的一些步驟?