首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

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

2012-09-01 
maven运行需要的jvm相关变量设定maven报错误:The system is out of resources.Consult the following stac

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>

热点排行