The link to the other discussion is as follows:
http://groups.google.com/group/scalatest-users/browse_thread/thread/3669c14f54e4024d/70a7d3cbbef4c548?lnk=gst&q=java+heap+space#70a7d3cbbef4c548
Would really appreciate your quick response!
-SiM
setenv JAVA_HOME /System/Library/Frameworks/JavaVM.framework/Versions/
1.6/Home
setenv JAVA_OPTS -Xmx2048m
setenv M2_HOME /usr/share/maven
setenv MAVEN_OPTS -Xmx1536m -XX:MaxPermSize=128m
setenv PATH /System/Library/Frameworks/JavaVM.framework/Versions/1.6/
Home/bin:/usr/share/maven/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/
bin:/usr/X11/bin
Then, I needed to add increase the jvm memory option in maven-scala-
plugin in my pom.xml.
look for the tag <jvmArgs> in the following pom.xml snippet
...
<build>
...
<plugin>
<groupId>org.scala-tools</groupId>
<artifactId>maven-scala-plugin</artifactId>
<version>2.12.2</version>
<executions>
<execution>
<id>scala-compile-first</id>
<phase>process-resources</phase>
<goals>
<goal>add-source</goal>
<goal>compile</goal>
</goals>
</execution>
<execution>
<id>scala-test-compile</id>
<phase>process-test-resources</phase>
<goals>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
<configuration>
<fork>true</fork>
<charset>${project.build.sourceEncoding}</charset>
<scalaVersion>${scala.version}</scalaVersion>
<args>
<arg>-target:jvm-1.5</arg>
</args>
<jvmArgs>
<jvmArg>-Xmx1536m</jvmArg>
</jvmArgs>
</configuration>
</plugin>
...
</build>
...
Re: