'Hot to apply particular properties file to an application run by spring-boot-maven-plugin?

There is a properties file application-special.yml that I use for launching app locally with spring-boot-maven-plugin. When the file is located in main/resources it is enough to pass special as profile name to the command:

clean spring-boot:run -D spring-boot.run.profiles=special

How to apply this property file when it is located outside the project?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source