set the MAVEN_OPTS environment variable...

    export MAVEN_OPTS="-Xms256m -Xmx1024m"


Something like that.


youhaodeyi wrote:
> I got a maven project and compile it by maven. Then I got the error
> "java.lang.OutOfMemoryError: Java heap space". How can I set the memory size
> running mvn command?
>
> thanks.
>   

Reply via email to