Let's say I want to load the application.properties from /tmp/application.properties. How do I do it when I usually execute the app with
mvn spring-boot:run
I read all docs and stackoverflow posts but I cannot get it working. Usually I find:
java -jar -Dspring.config.location=<path-to-file> myBootProject.jar
But this does not seem to work when executing via mvn-spring-boot:run. I also tried without success:
mvn spring-boot:run -Drun.jvmArguments="-Dspring.config.location=/tmp/application.properties"