I'm trying to make use of Maven's (v3) resource filtering capabilities to replace some variables in my application.properties
file, with a property in my pom.xml
.
The properties file resides in src/main/resources
and contains:
application.version=${project.version}
My pom file contains:
<project ...>
...
<version>1.0.0</version>
...
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
...
</build>
When I run goal (via eclipse run config) clean process-resources package
and take a look at the properties file in target/classes
, nothing has changed... the value remains the same.