Values Generation

With this configuration, the plugin replaces any placeholders entries, eg: {{key:value}}, by picking up only the value.

<plugin>
    <groupId>com.xebialabs.utils</groupId>
    <artifactId>placeholders-mustachifier-maven-plugin</artifactId>
    <version>0.4</version>
    <configuration>
        <filesets>
            <fileset>
                <directory>target/classes/com/myproject/resources</directory>
                <include>*.properties</include>
            </fileset>
        </filesets>            
    </configuration>
    <executions>
        <execution>
            <phase>compile</phase>
            <goals>
                <goal>mustache-tovalue</goal>
            </goals>
        </execution>
    </executions>
</plugin>

the property file before the plugin execution

param1={{PARAM1:45}}
param2={{param22}}
param3=44
param4=http://{{host:localhost}}:{{port:8080}}/{{context:default}}

the property file after the plugin execution

param1=45
param2={{param22}}
param3=44
param4=http://localhost:8080/default