idea中使用maven package出现java heap space问题

tech2024-08-21  43

在Idea中使用 maven package 时出现java heap space问题,详细问题如下:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:3.1.1:single (make-assembly) on project ezcms-base-service: Failed to create assembly: Error creating assembly archive bin: Problem creating zip: Execution exception (and the archive is probably corrupt but I could not delete it): Java heap space -> [Help 1]

最初以为是maven的配置问题,通过在bin/mvn.bat中增加设置依然无效,经过测试在cmd中可以成功打包:

mvn package

推测是idea中的配置问题,更改Idea中的配置成功解决问题,配置路径如下: file–》setting–》build,execution,deployment–》Runner

最新回复(0)