ben*_*rre 6 gwt gwt-compiler maven gwt-maven-plugin
我们有一个运行GWT插件的Maven构建(gwt-maven).不幸的是,它已经耗尽内存.
我是否需要为Maven本身提供更多堆,还是需要为GWT提供更多堆?知道如何为pom.xml文件指定这个吗?
在 gwt-maven-plugin 的配置标签下添加 extraJvmArgs 标签。
例子 -
<!-- GWT Maven Plugin -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<dependencies>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>${gwtVersion}</version>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-dev</artifactId>
<version>${gwtVersion}</version>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-servlet</artifactId>
<version>${gwtVersion}</version>
</dependency>
</dependencies>
<!-- JS is only needed in the package phase, this speeds up testing -->
<executions>
<execution>
<phase>prepare-package</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
<!-- Plugin configuration. There are many available options, see gwt-maven-plugin
documentation at codehaus.org -->
<configuration>
<runTarget>app.html</runTarget>
<!-- Turning This on after understanding soyc and when deferredjs count is 48.cache.js -->
<!-- https://developers.google.com/web-toolkit/articles/fragment_merging -->
<fragmentCount>25</fragmentCount>
-->
<!-- Ask GWT to create the Story of Your Compile (SOYC) (gwt:compile) -->
<!-- Turn This on for generating soyc. This does not work if closure compiler is turned on.-->
<!-- Start Generating SOYC -->
<compileReport>true</compileReport>
<compilerMetrics>true</compilerMetrics>
<soycDetailed>true</soycDetailed>
<!-- End Generating SOYC -->
<disableCastChecking>true</disableCastChecking>
<disableClassMetadata>true</disableClassMetadata>
<enableClosureCompiler>true</enableClosureCompiler>
<optimizationLevel>9</optimizationLevel>
<style>${gwt.style}</style>
<module>${gwtModule}</module>
<encoding>${project.build.sourceEncoding}</encoding>
<strict>true</strict>
<logLevel>INFO</logLevel>
<copyWebapp>true</copyWebapp>
<hostedWebapp>
${project.build.directory}/${project.artifactId}
</hostedWebapp>
<extraJvmArgs>-Xmx896M -Xms896m -XX:PermSize=64m -XX:MaxPermSize=128m</extraJvmArgs>
<!-- <extraJvmArgs>-Xmx896M -Xms896m -XX:PermSize=64m -XX:MaxPermSize=128m -XX:+UseConcMarkSweepGC -server</extraJvmArgs> -->
</configuration>
</plugin>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
11970 次 |
| 最近记录: |