I went through this problem myself.  Here is what I did to solve it.
I'm glad to help.

<plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
                <execution>
                        <phase>compile</phase>
                        <goals>
                                <goal>run</goal>
                        </goals>
                        <configuration>
                                <tasks>
                                        <taskdef
resource="net/sf/antcontrib/antlib.xml">
                                                <classpath>
                                                            <pathelement
location="c:/lib/ant-contrib-<ver>.jar"/>
                                                </classpath>
                                        </taskdef>
                                        <for list="a,b,c" param="letter"
delimiter=",">
                                                <sequential>
        
<echo>@{letter}</echo>
                                                </sequential>
                                        </for>
                                </tasks>
                        </configuration>
                </execution>
        </executions>
</plugin> 


This message (including any attachments) contains confidential information 
intended for a specific individual and purpose, and is protected by law.  If 
you are not the intended recipient, you should delete this message. 


Any disclosure, copying, or distribution of this message, or the taking of any 
action based on it, is strictly prohibited. [v.E.1]

Reply via email to