Maven运⾏错误GCoverheadlimitexceeded解决⽅法安装了maven后,⽤maven将项⽬进⾏打包时,当项⽬较⼤时,儒林外史主要情节
则可能会出现GC overhead limit exceeded错误,如下所⽰:
GC overhead limit exceeded -> [Help 1]
[ERROR]
[ERROR] To e the full stack trace of the errors, re-run Maven with the -e sw砂糖橘
itch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors andam指法
possible solutions, plea read t犹豫不决的反义词
he following artic炖甲鱼
les:
[ERROR] [Help 1] http:/女性发情药
//confluence/display/MAVEN/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"
----------------------------------------------------------------------------------------
$ source /etc/profile
将上⾯的maven的环境变量修改,添加⼀个opts的环境变量,并根据⾃⼰需要设置内存⼤⼩,然后重新吕薇个人资料
运⾏mvn命令,则⼀切正常。