联系
Knight's Blog » 技术

Maven import in Intellij IDEA runs out of memory on a large project 提高编译内存的大小

2020-07-14 16:18

The solution is to set -Xmx1g (or more) in Maven VM options for importer (yes, it is a separate option!).

Go to "Settings/Preferences -> Build Tools -> Maven -> Importing", and find the option there.

这个数值就是启动时inteilj的shell命令中的xmx数值。

如果import一直出现编译 java heap overflow,就需要设置这货