See the compilation guide for gwt-maven-plugin. You can use the extraJvmArgs element.
<plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>gwt-maven-plugin</artifactId> <version>2.2.0</version> <executions> <execution> <configuration> <extraJvmArgs>-Xmx512M -Xss1024k -Dfoo=bar</extraJvmArgs> </configuration> <goals> <goal>compile</goal> </goals> </execution> </executions> </plugin>
Edit: this turned out not to work for gwt:run goal , but moving extraJvmArgs to the plugin configuration (and not execution): -
<plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>gwt-maven-plugin</artifactId> <version>2.2.0</version> <configuration> <extraJvmArgs>-Xmx512M -Xss1024k -Dfoo=bar</extraJvmArgs> </configuration> </plugin>
source share