As per the top two answers in: maven dependencies groovy. I\'m trying to compile a mixed Java 6 + Groovy project with Maven, using the GMaven-plugin from org.codehaus.gmaven
org.apache.maven.plugins maven-compiler-plugin 3.5.1 1.7 1.7 groovy-eclipse-compiler org.codehaus.groovy groovy-eclipse-compiler 2.8.0-01 org.codehaus.groovy groovy-eclipse-batch 2.1.5-03
See this article, it helped me to compile both java and groovy
Groovy Java compile together