tagged: maven-build-lifecycle

Maven p22: Run a task at a build lifecycle phase

To execute a plugin, or an Ant task in this case, at a certain time in the build, you can specify a plugin in the build tag, and then an executions tag to specify the phase it should execute:
	      <tasks name="hallo">
		<echo>Hello, World</echo>

This says that the ant plugin should be ran in the 'pre-clean' stage, that the goal in the ant plugin should be run, and the tasks in the configuration says what to do.

maven ant maven-build-lifecycle

Page 1 of 1