Antタスクを実行するmaven-antrun-pluginの設定
/project/reporting/plugins
<!-- Ant --> <plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <phase>pre-site</phase> <configuration> <tasks> <echo message="Source Directory: ${project.build.sourceDirectory}"/> </tasks> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin>
tasksの中に実行したいAntのタスクを記述すれば好きな処理が実行できます。が、あまり凝ったことをやると面倒なことになるようです。