I have a project which has a mix of java and groovy. the groovy code is in main/groovy and the java code is in main/java
The java code has some dependencies on the java code. I am trying to optimize the build process so I can just run mvn test, mvn package etc. The problem that I am having is that unless I run "mvn groovy:compile" first I get class not found errors in my java code. I tried to do something like the following without much success. <plugin> <groupId>org.codehaus.groovy.maven</groupId> <artifactId>gmaven-plugin</artifactId> <executions> <execution> <id>import</id> <phase>generate-sources</phase> <goals> <goal>compile</goal> </goals> </execution> </executions> </plugin> Any suggestions? TIA