Chris, thanks for the reply. It does help however now I get errors like: package org.apache.xmlbeans does not exist when it tries to compile the classes. I guess I would need to setup the classpath arg somehow for the taskdef. But I am not sure how to do that. Including a link to the repository folder doesn't seem like a solution to me. Any ideas?
thanks again, Attila > Subject: RE: maven2: ant taskdef > Date: Mon, 28 Aug 2006 14:49:14 -0500 > From: "Chris Hilton" <[EMAIL PROTECTED]> > To: "Maven Users List" <[email protected]> > > 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]
