I am Maven to build my Java project. After several successful build, I am now getting the following error:
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
In my maven.sh file that my build is using, I have added the following as the first line
export MAVEN_OPTS=-Xmx512m
I am still getting the error.
Can anyone suggest a fix?