Maven Out of Memory Build Failure

前端 未结 13 1160
情歌与酒
情歌与酒 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:33

    Increasing the memory size in the environment variable 'MAVEN_OPTS' will help resolve this issue. For me, increasing from -Xmx756M to -Xmx1024M worked.

提交回复
热议问题