This is a basically what we are running into on https://github.com/argonaut-io/argonaut/tree/series/6.0.x:
[23:22] [ seanparsons ] With a fresh sbt I get this from 2.9.3: [success] Total time: 78 s, completed 21-Apr-2014 14:20:53
[23:25] [ seanparsons ] With a fresh sbt I get this from 2.10.4: [success] Total time: 60 s, completed 21-Apr-2014 14:22:57
[23:25] [ seanparsons ] But in the cross build that second one was: [success] Total time: 332 s, completed 21-Apr-2014 14:01:57
And it seems to be exponential. We are building for 4 platforms (2.9.2, 2.9.3, 2.10.4, 2.11.0). Running ./sbt "; clean ; +test"
can take hours.
Note have tried running with a variety of JVM_OPTS, for most part:
JVM_OPTS="-Dfile.encoding=UTF8 -XX:MaxPermSize=512m -Xms512m -Xmx3g -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC"; export JVM_OPTS