0

I am getting out of space error so i increased size in mvn.bat at MAVEN_HOME/bin with

set  MAVEN_OPTS=-Xmx756m -XX:MaxPermSize=756M

Running from windows cmd, it picks up the maven options and runs fine. When i run this from git bash these options are not picked up and i am getting out of memory error. I tried closing and restarting git bash shell and confirmed both are running maven from same maven home directory.

I want to use git bash instead of cmd because my project is git based and i prefer unix commands

4

1 回答 1

1

将 maven 选项添加到 .bashrc 修复了它:

vi ~/.bashrc
export MAVEN_OPTS=-Xmx756m -XX:MaxPermSize=756M"
于 2013-07-03T20:52:15.243 回答