I have made a Maven version og the groovybooking example application.
There was not much to find on the www about Seam+Grovy+Maven, so i had to do a lot of experimenting to get Groovy to play nice in such a context. The groovy-all jar dependency, version 1.5.4, provided by the Seam-2.1.2 root POM did not work; I had to upgrade the dependency to version 1.6.3 which in turn affected the gmaven plugin:
<plugin> <groupId>org.codehaus.groovy.maven</groupId> <artifactId>gmaven-plugin</artifactId> <version>1.0</version> <configuration> <debug>true</debug> <stacktrace>true</stacktrace> <targetBytecode>1.6</targetBytecode> <verbose>true</verbose> <sourceEncoding>utf-8</sourceEncoding> </configuration> <executions> <execution> <goals> <goal>generateStubs</goal> <goal>compile</goal> <goal>generateTestStubs</goal> <goal>testCompile</goal> </goals> </execution> </executions> </plugin>
But anyway, the experimenting (trail and errors) paid off and I finally got the groovybooking example application to build, deploy and run without errors.
The source code can be found here:
A small wiki page is here: