Maven运⾏错误GCoverheadlimitexceeded解决⽅法安装了maven后,⽤maven将项⽬进⾏打包时,当项⽬较⼤时,则可能会出现GC overhead limit exceeded错误,如下所⽰:
GC overhead limit exceeded -> [Help 1]
[ERR孕妇能吃薏仁吗
OR]
[ERROR] To e the full stack trace of the errors, re-run Maven with the -e 六一儿童节手抄报内容
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERRtreat的名词
OR]
[ERROR] For more information about the errors an小孩头像超萌女孩
d possible solutions, plea read the following articles:
[ERROR] [Help 1] /confluence/display/MAV入党需要什么学历
EN/OutOfMemoryError
这说明maven的jvm内存不⾜,再linux中,可以直接再环境变量中,设置maven调⽤java插件时分配的内存⼤⼩,解决办法如下:
$ vim /etc/profile
-----------------------------------------------------------------------过春节的画
-----------------
MAVEN_HOME=/usr/local/apache-maven-3.5.0
export MAVEN_HOME
export PATH=${PATH}:${MAVEN_HOME}/bin
export MAVEN_OPTS="-Xms1024m -Xmx3024m"
--------------------------------------------------------------------------------------上火了吃什么
--
$ sa英语
ource /etc/profile
将上⾯的maven的环境变量修改,添加⼀个opts的环境变量,并根据⾃⼰需要设置内存⼤⼩,然后重新运⾏mvn命令,则⼀切正常。