Fork me on GitHub

Include the plugin in your project’s pom.

<plugins>
...
    <plugin>
        <groupId>com.summitsystemsinc.maven</groupId>
        <artifactId>groovy-template-maven-plugin</artifactId>
        <version>1.0.0</version>
        <executions>
            <execution>
                <goals>
                    <goal>generate</goal>
                </goals>
            </execution>
        </executions>
    </plugin>
...
</plugins>

By default, the plugin will generate sources from src/main/gtemplate and src/test/gtemplate. The files that are output will reflect the name of the input files.