On Today at 11:30am, MAUGM=>Morgovsky, Alexander (US - Glen Mills)...: AM> I am trying to create an Ant task using the maven-antrun-plugin in AM> Maven 2. I would like to use the optional task foreach. In Ant, I AM> did this by declaring the Ant-Contrib jar in a taskdef object in the AM> build.xml. How may I do this in Maven 2? Thanks. AM> AM>
I have the following in the <dependencies> section of my pom <dependency> <groupId>ant-contrib</groupId> <artifactId>ant-contrib</artifactId> <version>0.6</version> <scope>provided</scope> </dependency> then in my maven-antrun-plugin <tasks> section, I have the following: <configuration> <tasks> <taskdef resource="net/sf/antcontrib/antcontrib.properties" classpathref="maven.compile.classpath"/> ...... </tasks> </configuration> Hope this helps. -- Haroon Rafique <[EMAIL PROTECTED]> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]