I tried to launch sbt assembly
with some library dependencies.
When I tried to add
"edu.stanford.nlp" % "stanford-corenlp" % "3.5.1",
"edu.stanford.nlp" % "stanford-corenlp" % "3.5.1" classifier "models",
It closes with an error :
java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space
...
Caused by: java.lang.OutOfMemoryError: Java heap space
...
at sbtassembly.Assembly$.sha1content(Assembly.scala:294)
at sbtassembly.Assembly$$anonfun$24.apply(Assembly.scala:206)
at sbtassembly.Assembly$$anonfun$24.apply(Assembly.scala:202)
...
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
When I add provided
property to these librairies, it works well.
I added the options on the build.sbt
like mentioned on the README file of SBT assembly but nothing changed.
assemblyOption in assembly := (assemblyOption in assembly).value.copy(cacheUnzip = false)
assemblyOption in assembly := (assemblyOption in assembly).value.copy(cacheOutput = false)
javaOptions in assembly += "-Xmx2g"
Run on
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.1")
scalaVersion := "2.11.6"
Thanks for help