[英]How do I allocate more memory to Proguard with the Proguard Maven Plugin?
I'm getting OutOfMemoryErrors when trying to use the Proguard Maven Plugin. 在尝试使用Proguard Maven插件时,我得到OutOfMemoryErrors。 I have tried allocating more memory to Maven by setting the MAVEN_OPTS environment variable to -Xmx2g but this doesn't make any difference.
我已经尝试通过将MAVEN_OPTS环境变量设置为-Xmx2g来为Maven分配更多内存,但这没有任何区别。 I assume that proguard must run in a separate process.
我假设proguard必须在一个单独的进程中运行。
As far as I know proguard-maven-plugin has a separate configuration entry for that: 据我所知,proguard-maven-plugin有一个单独的配置条目:
<plugin>
<groupId>com.pyx4me</groupId>
<artifactId>proguard-maven-plugin</artifactId>
<version>2.0.4</version>
...
<configuration>
<maxMemory>576m</maxMemory>
</configuration>
</plugin>
And you're right, proguard runs in a forked process. 而你是对的,proguard在分叉的过程中运行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.