증상:
mvn install 등의 명령으로 좀 큰 프로젝트(예를 들자면 hudson 등)를 빌드하다 보면, 다음과 같은 에러 메시지와 함께 빌드가 되지 않는 경우가 있다.
The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError: Java heap space
해결책:
MAVEN_OPTS 환경 변수를 "-Xmx1024m" 정도로 설정한다.
export MAVEN_OPTS=-Xmx1024m
happy hackin'