You have put the antrun
definition inside a pluginManagement
block.
pluginManagement
means: "if someone uses this plugin, he will do it in the following way..."
In your example, no one uses the plugin, since there is no normal plugin definition. Remove <pluginManagement>
and </pluginManagement>
from your pom, and it will work.