This is an example of that:
<plugin> <artifactId>maven-antrun-plugin</artifactId> <version>1.8</version> <executions> <execution> <id>1</id> <phase>generate-test-resources</phase> <configuration> <target> <echo message="%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%"/> <echo message="run - generate-test-resources"/> <echo message="%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%"/> </target> </configuration> <goals> <goal>run</goal> </goals> </execution> <execution> <id>2</id> <phase>generate-resources</phase> <configuration> <target> <echo message="%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%"/> <echo message="run - generate-resources"/> <echo message="%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%"/> </target> </configuration> <goals> <goal>run</goal> </goals> </execution> <execution> <id>443-4</id> <phase>process-test-classes</phase> <configuration> <target> <echo message="%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%"/> <echo message="process-test-classes"/> <echo message="%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%"/> <fail/> </target> </configuration> <goals> <goal>run</goal> </goals> </execution> <execution> <id>3</id> <phase>test</phase> <configuration> <target> <echo message="%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%"/> <echo message="DOES NOT RUN ! test"/> <echo message="%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%"/> </target> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin>
No comments:
Post a Comment