I am using Spring-Boot v1.3.0.M5 with Maven v3.3.3. I used to be able to run my Spring Boot (boot) application from the console with this command.
mvn clean pa
Try just this :
<resources>
<resource>
<directory>src/main/resources/config</directory>
<filtering>true</filtering>
<includes>
<include>**/*.properties</include>
</includes>
</resource>
</resources>
As described in the documentation mvn spring-boot:run
adds src/main/resources
in front of your classpath to support hot reload by default. You can turn this off easily
<build>
...
<plugins>
...
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>1.2.7.RELEASE</version>
<configuration>
<addResources>false</addResources>
</configuration>
</plugin>
...
</plugins>
...
</build>
Since Spring Boot 1.3, in order to have resources filtered as expected, we have to use new @@
format:
some.key = @value@
instead of classic:
some.key = ${value}
Relevant spring-boot issue: https://github.com/spring-projects/spring-boot/issues/980