SBT Won′t update .classpath in a Play Scala project
我正在Eclipse Scala IDE中创建一个新的Play Scala项目。
原始的build.sbt文件为:
1 2 3 4 5 6 7 8 9 10 11 12 13 | name :="""portal""" version :="1.0-SNAPSHOT" lazy val root = (project in file(".")).enablePlugins(PlayScala) scalaVersion :="2.11.1" libraryDependencies ++= Seq( jdbc, cache, ws ) |
我已经对其进行了编辑,以包括更多依赖项:
1 2 3 4 5 6 7 8 | libraryDependencies ++= Seq( jdbc, javaEbean, cache, ws, "org.postgresql" %"postgresql" %"9.3-1100-jdbc4", "org.scalatestplus" %%"play" %"1.1.0" %"test" ) |
我不知道为什么SBT在类路径中不包含Ebean,postgresql或scalatest。有帮助吗?
碰巧我需要运行命令
1 | activator eclipse |
再次
并刷新IDE。