Although it is possible to use Ant inside Maven to compile Groovy, the easiest method is to use GMaven, the Maven2 plugin for building Groovy projects. GMaven has the advantage that it will build projects where Java code references classes defined in Groovy. Nevertheless, here's an example of a Maven2 build using the Ant plugin to compile a groovy project. Note that the Ant plugin is bound to the
{{#tags}}- {{label}}
{{/tags}}