This plugin is meant to allow you to use Groovy GString template mechanism during your Maven build simply by executing a plugin. Templating with GString is one of the simplest and more powerful way to do templating for Java developers. See
- http://groovy.codehaus.org/Groovy+Templates
- http://groovy.codehaus.org/Strings+and+GString#StringsandGString-Strings-GStrings
Big advantage of GStrings over simple pattern replacement/filtering (like the one provided by maven-resource-plugin), is that GString allow you to make branching, conditional values, and everthing else Groovy allows you to do.
Here is an example usage of how to use the gstring-maven-plugin
<build>
<plugins>
<plugin>
<groupId>org.jboss.tools.maven</groupId>
<artifactId>gstring-maven-plugin</artifactId>
<version>0.0.1-SNAPSHOT</version>
<executions>
<execution>
<id>create-results-html</id>
<phase>package</phase>
<goals>
<goal>process-templates</goal>
</goals>
<configuration>
<files>
<file>results.html</file>
</files>
<symbols>
<update_site_description>${update.site.description}</update_site_description>
<TARGET_PLATFORM_VERSION>${TARGET_PLATFORM_VERSION}</TARGET_PLATFORM_VERSION>
<TARGET_PLATFORM_VERSION_MAXIMUM>${TARGET_PLATFORM_VERSION_MAXIMUM}</TARGET_PLATFORM_VERSION_MAXIMUM>
<update_site_qualifier>%{buildQualifier}</update_site_qualifier>
<JOB_NAME>${JOB_NAME}</JOB_NAME>
<BUILD_NUMBER>${BUILD_NUMBER}</BUILD_NUMBER>
</symbols>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
You can either re-build it locally, or consume it directly from JBoss Nexus:
<repositories>
<repository>
<id>jboss-releases</id>
<name>JBoss Releases Maven Repository</name>
<url>https://repository.jboss.org/nexus/content/repositories/releases/</url>
<releases>
<enabled>true</enabled>
</releases>
</repository>
<repository>
<id>jboss-snapshots-repository</id>
<name>JBoss Snapshots Repository</name>
<url>https://repository.jboss.org/nexus/content/repositories/snapshots/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
It's EPL
Fork it, submit issues and pull requests.