Maven Out of Memory Build Failure

前端 未结 13 1159
情歌与酒
情歌与酒 2020-11-29 18:37

As of today, my maven compile fails.

[INFO] [ERROR] Unexpected
[INFO] java.lang.OutOfMemoryError: Java heap space
[INFO]  at java.util.Arrays.copyOfRange(Arr         


        
13条回答
  •  半阙折子戏
    2020-11-29 19:38

    I got same problem trying to compile "clean install" using a Lowend 512Mb ram VPS and good CPU. Run OutOfMemory and killed script repeatly.

    I used export MAVEN_OPTS="-Xmx512m -XX:MaxPermSize=350m" and worked.

    Still getting some other compiling failure because is the first time i need Maven, but OutOfMemory problem has gone.

提交回复
热议问题