env MAVEN_OPTS="-Xms256m -Xmx1024m" mvn install

youhaodeyi wrote:
Can I use it as command line argument instead of setting environment
variable?


dchicks wrote:
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.



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to