Something like this might do the trick:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>xmlbean</id>
<phase>package</phase>
<configuration>
<tasks>
<taskdef name="xmlbean"
classname="org.apache.xmlbeans.impl.tool.XMLBean"/>
<xmlbean schema="../xmlbeans"
destfile="target/xmltypes.jar">
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>xmlbeans</groupId>
<artifactId>xbean</artifactId>
<version>2.1.0</version>
</dependency>
</dependencies>
</plugin>
Chris
> -----Original Message-----
> From: Attila Mezei-Horvati [mailto:[EMAIL PROTECTED]
> Sent: Monday, 28 August, 2006 14:41
> To: [email protected]
> Subject: maven2: ant taskdef
>
> Hi,
>
> In my old ant build file I had something like:
> <taskdef name="xmlbean"
> classname="org.apache.xmlbeans.impl.tool.XMLBean"
> classpath="xbean.jar;jsr173_api.jar" />
> <task>
> <xmlbean schema="../xmlbeans"
> destfile="xmltypes.jar">
> </xmlbean>
> </task>
>
> How can I translate this in maven ant task? I need to
> generate xmlbeans from the xsd files.
>
> thanks,
> Attila
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection
> around http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> 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]