maven运行需要的jvm相关变量设定

maven报错误:
The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError: GC overhead limit exceeded

设置环境变量:
MAVEN_OPTS = -Xmx1024m -Xms256m

Maven2以上:
配置javac参数:nowarn
maven-compiler-plugin
<plugin>
   <groupId>org.apache.maven.plugins</groupId>
   <artifactId>maven-compiler-plugin</artifactId>
   <configuration>
       <compilerArgument>-nowarn</compilerArgument>
       <compilerArgument>-verbose</compilerArgument>
   </configuration>
</plugin>

你可能感兴趣的:(maven)