如何让 sbt-eclipse 插件忽略添加/创建src/main/java和 src/test/java 到 eclipse .classpath?
我没有这些文件夹,当我运行 >eclipse 时,eclipse-sbt-plugin 会创建这些文件夹并添加到 eclipse .classpath 中。
构建.sbt 文件
name := "myproject"
version := "1.0"
scalaVersion := "2.10.1"
resolvers += "google-api-services" at "http://google-api-client-libraries.appspot.com/mavenrepo"
libraryDependencies += "org.scalatest" %% "scalatest" % "1.9.1" % "test"
libraryDependencies += "junit" % "junit" % "4.10" % "test"
libraryDependencies += "com.novocode" % "junit-interface" % "0.10-M1" % "test"
EclipseKeys.createSrc := EclipseCreateSrc.ValueSet(EclipseCreateSrc.Unmanaged, EclipseCreateSrc.Source, EclipseCreateSrc.Resource)
项目/plugins.sbt 文件
resolvers += Classpaths.typesafeResolver
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.2.0")
谢谢。