IntelliJ maven out of memory

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”

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s