返回顶部

收藏

intelj idea maven编译报错内存溢出

更多

在intelj中maven编译报内存溢出, 错误详情如下

[INFO] Using incremental compilation
[INFO] Compiling 3 Scala sources and 1 Java source to D:\git\jdtask\executor\target\test-classes...
[ERROR] PermGen space -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/OutOfMemoryError

第三行提示PermGen spance内存溢出了, 解决问题的方法是设置intelij idea的maven参数, 如下图所示: maven settings

在VM Options中添加 -Xmx512m -XX:MaxPermSize=128m 两个选项, 调大内存。

标签:maven,intelij,内存溢出

收藏

0人收藏

支持

0

反对

0

发表评论