[Maven]Maven Build시 OutOfMemoryError

Programing 2016.09.29 13:58 Posted by 애플자라
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 33.633 s
[INFO] Finished at: 2016-09-29T13:19:50+09:00
[INFO] Final Memory: 17M/247M
[INFO] ------------------------------------------------------------------------
[ERROR] Java heap 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


환경 : Windows7(i7-3770, 32bit, 메모리4G)



C:\apache-maven-3.3.9\bin\mvn.cmd 수정



set hip_memory=1024m


SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"


for %%i in ("%M2_HOME%"\boot\plexus-classworlds-*) do set CLASSWORLDS_JAR="%%i"


set CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher


%MAVEN_JAVA_EXE% -Xmx%hip_memory% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %CLASSWORLDS_JAR% "-Dclassworlds.conf=%M2_HOME%\bin\m2.conf" "-Dmaven.home=%M2_HOME%" "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %CLASSWORLDS_LAUNCHER% %MAVEN_CMD_LINE_ARGS%




댓글을 달아 주세요