-
Notifications
You must be signed in to change notification settings - Fork 41.5k
Closed
Labels
status: invalidAn issue that we don't feel is validAn issue that we don't feel is valid
Description
Hi,
When you run
mvn spring-boot:run -P dev
it ignores maven resource filtering. I have application.properties file with following entry
spring.profiles.active = ${active.profiles}
In my pom.xml I have
<profile>
<id>dev</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<active.profiles>dev</active.profiles>
</properties>
</profile>
When i do classic mvn package evertyhing works as expected
application.properties becomes:
spring.profiles.active = dev
When I run Application class from eclipse with profile set in m2e plugin, everything also works as expected.
Any ideas why mvn spring-boot:run -P dev ignores resource filtering. ?
dostiharise
Metadata
Metadata
Assignees
Labels
status: invalidAn issue that we don't feel is validAn issue that we don't feel is valid