Saliya's Blogs

Mostly technical stuff with some interesting moments of life

Showing posts with label maven. Show all posts
Showing posts with label maven. Show all posts

Increase Java Heap Memory for Maven

If you ever encounter an error saying Java heap is not enough, while building a project using Maven, the following content will help to get out of it. Thanks Charitha for finding this.

Set the MAVEN_OPTS system property,

e.g. MAVEN_OPTS=-Xmx1024m  will give you 1024 Mb heap