Skip to content

Instantly share code, notes, and snippets.

@rekhubs
Created April 3, 2020 01:22
Show Gist options
  • Save rekhubs/15129eee57de7b3a7e7d3f7dd2c83741 to your computer and use it in GitHub Desktop.
Save rekhubs/15129eee57de7b3a7e7d3f7dd2c83741 to your computer and use it in GitHub Desktop.
spring boot mvn plugn - select profile and jvm options and others - 1.x vs 2.x
1.5.x
https://docs.spring.io/spring-boot/docs/1.5.13.RELEASE/maven-plugin/run-mojo.html
options using run.xxx
run.jvmArguments
run.profile
The spring profiles to activate. Convenience shortcut of specifying the 'spring.profiles.active' argument. On command line use commas to separate multiple profiles.
User property is: run.profiles.
mvn clean spring-boot:run -Dspring.profiles.active=local -Drun.jvmArguments="-Xmx512m"
mvn clean spring-boot:run -Drun.profiles=local -Drun.jvmArguments="-Xmx512m"
2.2.x
https://docs.spring.io/spring-boot/docs/2.2.6.RELEASE/maven-plugin/run-mojo.html
spring-boot.run.profiles
spring-boot.run.jvmArguments
The spring profiles to activate. Convenience shortcut of specifying the 'spring.profiles.active' argument. On command line use commas to separate multiple profiles.
User property is: spring-boot.run.profiles.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment