Goals available for this plugin:
| Goal | Description |
|---|---|
| groovy:compile | Compiles Groovy sources. |
| groovy:console | Launches the Groovy GUI console. |
| groovy:execute | Executes a Groovy script. |
| groovy:generateStubs | Generate Java stubs from Groovy sources. |
| groovy:generateTestStubs | Generate Java stubs from Groovy test sources. |
| groovy:help | Display help information on gmaven-plugin. Call mvn groovy:help -Ddetail=true -Dgoal=<goal-name>to display parameter details. |
| groovy:providers | Displays information about the Groovy runtime providers which are configured and selected. |
| groovy:shell | Launches the Groovy Shell (aka. groovysh). |
| groovy:testCompile | Compiles Groovy test sources. |
The following specifies the minimum requirements to run this Maven plugin:
| Maven | 2.0 |
| JDK | 1.4 |
| Memory | No minimum requirement. |
| Disk Space | No minimum requirement. |
You should specify the version in your project's plugin configuration:
<project>
...
<build>
<!-- To define the plugin version in your parent POM -->
<pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.groovy.maven</groupId>
<artifactId>gmaven-plugin</artifactId>
<version>1.0-rc-5</version>
</plugin>
...
</plugins>
</pluginManagement>
<!-- To use the plugin goals in your POM or parent POM -->
<plugins>
<plugin>
<groupId>org.codehaus.groovy.maven</groupId>
<artifactId>gmaven-plugin</artifactId>
<version>1.0-rc-5</version>
</plugin>
...
</plugins>
</build>
...
</project>
For more information, see "Guide to Configuring Plug-ins"