Usually I\'m running my Spring Boot application with command:
mvn spring-boot:run -Drun.arguments=--server.port=9090 \\ -Dpath.to.config.dir=/var/data/my/
Notice that from spring-boot 2.0 names have changed. For more details check out:
https://docs.spring.io/spring-boot/docs/2.0.2.RELEASE/maven-plugin/run-mojo.html