Spring Boot: passing system properties to maven
With the current version (>= 2.0.0.RELEASE), the parameter is -Dspring-boot.run.jvmArguments
Source: Sprint-boot plugin
mvn spring-boot:run -Dspring-boot.run.jvmArguments="-Dspring.profiles.active=dev"
It's also possible to do:
mvn spring-boot:run -Dspring-boot.run.profiles=dev
Try running your application with:
mvn spring-boot:run -Drun.jvmArguments="-Dspring.profiles.active=dev"
I don't know which version your are using but check this issue too