Seems like I remember seeing a way to specify it on the Maven command line, but I can't recall the details.
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. >>> >>> >> > >
