As desribed here: http://stackoverflow.com/questions/12498738/maven-out-of-memory-build-failure This should fix the fragile MAVEN_OPTS handling of travisci, too!