Willie, I've found that if I make the task's jars dependencies on the antrun plugin, then the taskdefs resolve just fine.
Hope this helps - -margaret -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Willie Vu Sent: Wednesday, May 24, 2006 3:02 AM To: users@maven.apache.org Subject: Classpath in ant scripts in an Ant mojo I'm using Maven 2.0.4. I am developing a plugin using Ant script. A task is declared using <taskdef>. The task class is contained in one of the artifacts of the pom.xml of the project that uses this Ant mojo plugin. An error occurred that the task class is not found. It seems like Maven doesn't resolve and pass dependency classpath to the Ant script. Any idea? -- Willie Vu --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]