When I was trying to do mvn clean tomcat:redeploy -DskipTests -Plocal, it always prompt with out of memory exception. However if I do it in cmd, it would be fine.
It turns out:
IntelliJ’s GWT plugin will do the build using its own settings and won’t use the ones in the Maven plugin.
You need to go to the projects settings (see http://www.jetbrains.com/idea/webhelp/gwt-facet.html)
You can increase your ‘Compiler Maximum Heap’ there.
“File” -> “Project Structure” -> “Facets” -> “GWT”