I have maven project wit java and groovy tests. On the Maven compilation command line, all tests work, but in my IDEA project (which is created automatically, "AutoImport Maven projects", copies IDEA groovy files to / target / test classes without compiling them.
My gmaven plugin looks like
<plugin> <groupId>org.codehaus.gmaven</groupId> <artifactId>gmaven-plugin</artifactId> <version>1.3</version> <executions> <execution> <goals> <goal>generateStubs</goal> <goal>compile</goal> <goal>generateTestStubs</goal> <goal>testCompile</goal> </goals> <configuration> <providerSelection>1.7</providerSelection> </configuration> </execution> </executions> <dependencies> <dependency> <groupId>org.codehaus.groovy</groupId> <artifactId>groovy-all</artifactId> <version>${groovy.version}</version> </dependency> </dependencies> </plugin>
source share