テストの実行
テストを実行するには、色々と問題があるわけでして。
結局Maven2に至っても同じ問題が発生するわけであります。
ので、antを使って、
1.テストクラスをコンパイルするときに一緒に必要なファイルをコピー
2.cleanを実行したときに掃除する
ということに。
これはizuさんのところが一番参考になった。
<plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <id>test-compile</id> <phase>test-compile</phase> <goals> <goal>run</goal> </goals> <configuration> <tasks> <ant inheritRefs="true" antfile="${basedir}/build.xml"> <target name="test-compile"></target> </ant> </tasks> </configuration> </execution> <execution> <id>clean</id> <phase>clean</phase> (略) </execution> </executions> </plugin>
うーん、なんとかならんのかなぁ。
さて、残るはテストでCPU100%の件だが・・・。