Skip to content

Instantly share code, notes, and snippets.

@kellyrob99
Created March 6, 2011 19:31
Show Gist options
  • Save kellyrob99/857576 to your computer and use it in GitHub Desktop.
Save kellyrob99/857576 to your computer and use it in GitHub Desktop.
A pom snippet to show what's available to Groovy scripts run using the GMaven plugin as part of your maven build
<build>
<plugins>
<plugin>
<groupId>org.codehaus.groovy.maven</groupId>
<artifactId>gmaven-plugin</artifactId>
<executions>
<execution>
<phase>generate-resources</phase>
<goals>
<goal>execute</goal>
</goals>
<configuration>
<source>
println this.binding.variables
println project.properties
println settings.properties
</source>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment