title: How to increase stack size when compiling a play scala project with uncaught exception during compilation: java.lang.StackOverflowError
body: <p>When compiling play2.1 scala project using <code>eclipse</code>, I got the error as</p>
  <blockquote>
  <p>[error] uncaught exception during compilation:java.lang.StackOverflowError</p>
  <p>[error] (compile:compile)java.lang.StackOverflowError</p>
  </blockquote>
  <p>I tried to configure the compiler in <code>application.conf</code> by adding this line:</p>
  <blockquote>
  <p>jvm.memory=-Xmx5g -Xms5g -Xss8192M</p>
  </blockquote>
  <p>(my program also needs a lot of heap space, so I also added xmx and xms)</p>
  <p>but it does not work..</p>
  <p>How can I solve the problem?</p>