Setting Java heap space under Maven 2 on Windows

前端 未结 8 1187
情深已故
情深已故 2020-12-02 06:39

I get this message during build of my project

java.lang.OutOfMemoryError: Java heap space

How do I increase heap space, I\'ve

8条回答
  •  孤街浪徒
    2020-12-02 07:06

    It should be the same command, except SET instead of EXPORT

    • set MAVEN_OPTS=-Xmx512m would give it 512Mb of heap
    • set MAVEN_OPTS=-Xmx2048m would give it 2Gb of heap

提交回复
热议问题