gmaven-plugin を使用してsrc/test/groovy/com/kc/Validator.groovycom.kc.Validator
のクラスをコンパイルし、そのクラスを使用してスクリプトを実行しようとしています。.class ファイルが *target/test-classes/com/kc にあるが、スクリプトの実行が失敗した後:mvn compile
Failed to execute goal org.codehaus.gmaven:gmaven-plugin:1.5:execute (validate-configuration) on project solver2: startup failed, script1367530828433.groovy: 1: unable to resolve class com.kc.Validator
pom.xml の関連セクションは次のとおりです。
<plugin>
<groupId>org.codehaus.gmaven</groupId>
<artifactId>gmaven-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>compile-groovy</id>
<goals>
<goal>compile</goal>
<goal>testCompile</goal>
</goals>
</execution>
<execution>
<id>validate</id>
<phase>test</phase>
<goals>
<goal>execute</goal>
</goals>
<configuration>
<source>
(new com.kc.Validator()).validate()
</source>
</configuration>
</execution>
</executions>
</plugin>