MAVEN_OPTS and OutOfMemoryError error on build

Hello

I'm using Intellij 7.0.4 and think the maven integration is pretty good but I've run into an issue I'm not sure how to deal with. One of our builds runs requires a good amount of memory. When running from the command line we first enter:

export MAVEN_OPTS=-Xmx768m

And then enter the mvn command. In Intellij there does not seem to be a place to enter an environment variable for the Maven builds. I've added the above entry into the idea.sh shell script. That works but doesn't feel right. Am I missing something?

Thanks
Tom

1 comment
Comment actions Permalink

If you go into Maven Settings in the Maven tool window and click on the Runner tab there is an option for VM parameters. You can add your heap setting there. I believe you need use an external Maven configuration in order to do that though.

0

Please sign in to leave a comment.