Did you work this problem out, Attila? It seems like you are trying to
build a separate jar (which should be a separate project) that this
project would then depend on.

Chris

> -----Original Message-----
> From: Attila Mezei-Horvati [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, 29 August, 2006 10:39
> To: [email protected]
> Subject: RE: maven2: ant taskdef
> 
> Thanks the "maven.compile.classpath" was what I needed. 
>  
> Another question. In the ant task I need to specify a dest 
> file for the generated sources. Currently I do it
> by: destfile="target/sxmltypes.jar"
>  
> How can I do it so this jar is included in the package later? 
> 
> thanks,
> Attila
>  
>  
> > Subject: RE: maven2: ant taskdef
> > Date: Mon, 28 Aug 2006 16:16:29 -0500
> > From: "Chris Hilton" <[EMAIL PROTECTED]>
> > To: "Maven Users List" <[email protected]>
> > 
> > Ah, if you need that jar for compilation also, you should probably 
> > move that dependency out from under maven-antrun-plugin and 
> make it a 
> > general project dependency. Then modify the taskdef line
> > to:
> > 
> >                 <taskdef name="xmlbean"
> > classname="org.apache.xmlbeans.impl.tool.XMLBean">
> >                   <classpath
> > refid="maven.compile.classpath"/>
> >                 </taskdef>
> > 
> > Chris
> > 
> > > -----Original Message-----
> > > From: Attila Mezei-Horvati
> > > [mailto:[EMAIL PROTECTED]
> > > Sent: Monday, 28 August, 2006 16:01
> > > To: [email protected]
> > > Subject: RE: maven2: ant taskdef
> > > 
> > > 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
> 
> 
> __________________________________________________
> 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]

Reply via email to