Passing command line vmargs into mvn doesn’t work. You have to set an environment variable MAVEN_OPTS like below:
MAVEN_OPTS="-Xmx1024m -Xms512m"
export MAVEN_OPTS