On Mac OS X you can edit your .bash_profile file and add
export MAVEN_OPTS="-Xms1024m -Xmx4096m -XX:PermSize=1024m"
Restart the terminal session or run source .bash_profile to activate the environment variable.
On Linux you can edit your .bashrc file and add the
export MAVEN_OPTS="-Xms1024m -Xmx4096m -XX:PermSize=1024m"CAUTION:This does not configure Spring Loaded. You will see how to install and configure Spring Loaded later.
Restart the terminal session or run source .bashrc to activate the environment variable.
- On Windows, the exact procedure for setting environment variables varies depending on the version of Windows you are running. For example, the procedure for Windows XP can be found in the Microsoft Knowledgebase.
Ensure that the MAVEN_OPTS environment variable is set
correctly, using a method suitable for your system. For example, on Mac OS X and
Linux you can enter the following command:
env | grep MAVEN
Ensure that the result matches the value you specified in your shell configuration file (such as .bashrc.
If you are on Windows you can use a command such as SET M to display environment variables starting with 'M'.