How to solve the Maven VM initialization error

H

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.

Add comment

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Tag Cloud

Categories