I am trying to install an active profile in a Spring boot application using Maven 3.
In my pom.xml, I set the active active profile and property spring.profiles.active :
<profiles> <profile> <id>development</id> <properties> <spring.profiles.active>development</spring.profiles.active> </properties> <activation> <activeByDefault>true</activeByDefault> </activation> </profile> </profiles>
but every time I run my application, I get the following message in the logs:
No active profile set, falling back to default profiles: default
and the SpringBoot profile is set by default (reads application.properties instead of application -development.properties)
What else should I do to get my active SpringBoot profile configured using the Maven profile?
Any help is much appreciated.
source share