Increasing JVM heap size for Maven

There might be few instances when you are working on bigger project and it needs to do lot of processing while building/packaging final package of the project. In such projects there are chances that you’ll get JVM heap size error while building maven project. You can change the JVM options for Maven2 by setting following environment properties on your system:

Environment variable name: MAVEN_OPTS
JVM value: -Xms512m -Xmx1024m (adjust these values based on your project requirement).

Hope this will help you!


Popular posts from this blog

Sling Authentication

CQ Development - OSGi bundles and Components

Multiple log files using log4j appender

Create an AEM (CQ) project using Maven