Using antcontrib task via maven-antrun-plugin

I think it is not a very good idea to add ant to compile classpath in order to run maven plugin.

I use Maven 3.0.4 and it worked by specifying namespace for ant-contrib tags, for example:

    <echo message="The first five letters of the alphabet are:"/>
    <ac:for list="a,b,c,d,e" param="letter" xmlns:ac="antlib:net.sf.antcontrib">
        <echo>Letter @{letter}</echo>

My maven-antrun-plugin dependencies:


Leave a Comment