我的 Build.scala 文件内容。
val commonSettings = Seq(
version := "1.0.0",
organization := "com.collective",
scalaVersion := "2.11.4",
scalacOptions ++= List(
"-encoding", "UTF-8",
"-target:jvm-1.7",
"-feature",
"-unchecked",
"-deprecation",
"-Xlint",
"-Xfatal-warnings"
),
resolvers ++= Seq(
"ConJars" at "http://conjars.org/repo"
),
javaOptions in run += "-Xms256M -Xmx2G -XX:MaxPermSize=1024M -XX:+UseConcMarkSweepGC"
)
lazy val segmentFetcher = Project("segments-fetcher", file("."))
.settings(commonSettings: _*)
)
但是,当我执行
sbt run
并查看 jconsole,我在 Build.scala 中设置的堆大小没有被拾取。它只显示-Xmx512M。谁能告诉我我们如何强制 sbt 从项目构建文件中选择堆空间?
谢谢!