I also have multiple modules that each have their own eclipse projects generated.
I did try adding those two lines to my project/build.scala (now attached), but the src/main/java and src/test/java directories were still generated.
For some reason, I cannot upload my project/build.scala, so I have just copied the text below:
import sbt._
import Keys._
object ConsequenceReasonerMultiModuleBuild extends Build {
lazy val buildSettings = Seq(
name := "Consequence Reasoner",
version := "0.1-SNAPSHOT",
scalaVersion := "2.10.1",
scalacOptions += "-optimise",
scalacOptions += "-target:jvm-1.7",
libraryDependencies += "com.typesafe" % "config" % "1.0.0",
libraryDependencies += "org.scalatest" % "scalatest_2.10" % "1.9.1" % "test",
// Dependency at compilation-time only (not at runtime)
libraryDependencies += "com.nativelibs4java" %% "scalaxy-loops" % "0.3-SNAPSHOT" % "provided" excludeAll(ExclusionRule(organization = "org.scala-lang")),
// Scalaxy/Loops snapshots are published on the Sonatype repository
resolvers += Resolver.sonatypeRepo("snapshots"),
compileOrder in Compile := CompileOrder.Mixed,
compileOrder in Test := CompileOrder.JavaThenScala
)
override lazy val settings = super.settings ++ buildSettings
// SBT chooses default project based on lexicographical ordering
lazy val akernel = Project(id = "cr-kernel",
base = file("reasoner-kernel"))
lazy val owlapi = Project(id = "cr-owlapi",
base = file("reasoner-owlapi")) dependsOn(akernel)
lazy val protegeplugin = Project(id = "cr-protege-plugin",
base = file("reasoner-protege-plugin")) dependsOn(akernel)
lazy val fssparser = Project(id = "cr-fss-parser",
base = file("reasoner-fss-parser")) dependsOn(akernel)
lazy val cli = Project(id = "cr-cli",
base = file("reasoner-cli")) dependsOn(fssparser)
lazy val benchmark = Project(id = "cr-benchmark",
base = file("reasoner-benchmark")) dependsOn(akernel)
}