When you do a simple Maven build and you get the following error:
Error occurred during initialization of VM Could not reserve enough space for object heap Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.
It is known that the Surefire plugin contains a bug when you use Java version 7. To solve this problem, update your Surefire plugin to the latest version in your root pom file.