I'd like to add -Xmx6g as a command line argument to a spring boot application that is launched with maven via mvn spring-boot:run
. I do this easily enough with Intellij, but I would like to launch the application manually from my terminal so that I have some extra ram.
I've tried to configure in the Maven Surefire Plugin, but this hasn't worked. Could anyone share a working snippit?