Now, let us see how we can put the resources features of Maven to good use, that is, to perform variable replacements on project resources. This feature is useful when you need to parameterize a build with different configuration values, depending on the deployment platform.
You can define variables in your resources. Let us see how we can get the value of these variables from properties, resource filter files, and the command line.
To perform filtering using resources, use the following steps:
<build> <resources> <resource> <directory>src/main/resources</directory> ...