Bugfix: Due to the design of the Groovy Maven compiler, we were unable to reference the JAX-RS MediaType class from an annotation. Doing so would cause the Groovy compiler to look for a class in the Jersey jar and it would fail with a Class Not Found.
Consumes('application/json') // this worked
Consumes(MediaType.APPLICATION_JSON) // compiler error

The solution is to include the Jersey jar as a compile time dependency. Reference http://stackoverflow.com/questions/14447650/not-able-to-use-variables-defined-in-classes-within-groovy-annotations