If this is for a plugin, just set up a <property> so that the dependency 
loads in the root class loader. See the test plugin for more details

--
dIon Gillard, Multitask Consulting
Work:      http://www.multitask.com.au
Developers: http://adslgateway.multitask.com.au/developers


[EMAIL PROTECTED] wrote on 27/09/2002 12:00:31 AM:

> 
> Thanks Tom, that works a treat.
> 
>      Mike
> 
> 
> 
> 
> 
> Tom Palmer <[EMAIL PROTECTED]> on 26/09/2002 13:52:04
> 
> Please respond to "Turbine Maven Users List"
>       <[EMAIL PROTECTED]>
> 
> 
> 
> To:   "'Turbine Maven Users List'" 
<[EMAIL PROTECTED]>
> cc:
> Subject:  RE: Optional Ant tasks
> 
> Hi,
> 
>   A cleaner place would be to put it into bin/forehead.conf. For 
instance
> one of my projects uses ejbjar which depends on the BCEL Jar so I've 
added
> ${maven.home}/lib/bcel-5.0.jar to the root section.
> 
>   A possible long-term solution would be to create a directory within 
the
> lib directory that had an associated entry added to forehead.conf to 
load
> all .jar files from this directory into the root classloader. That way 
if
> the user needs to use an optional Ant task that depends on a Jar that 
isn't
> shipped with Maven, they can just place it in this directory.
> 
>   Regards,
> 
>   Tom
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]
> > Sent: 26 September 2002 13:23
> > To: Turbine Maven Users List
> > Subject: Optional Ant tasks
> >
> >
> >
> > Hi all,
> >
> > I'm having trouble using the optional ant tasks from my
> > maven.xml file.
> > The only way round it I've found is to explicitly place all
> > the ant libs
> > onto the maven classpath in maven.bat like so:
> >
> > SET
> > MAVEN_CLASSPATH="%MAVEN_HOME%\lib\forehead-1.0-beta-4.jar;%MAVEN_HOME%
> > \lib\ant-1.5.jar;%MAVEN_HOME%\lib\ant-optional-1.5.jar;%MAVEN_HOME%
> > \lib\NetComponents.jar"
> >
> > Is there a nicer way to do this?
> >
> >      Mike
> >
> > PS NetComponents is required but not distributed with Maven...
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> >
> 
> --
> To unsubscribe, e-mail:   <
> mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <
> mailto:[EMAIL PROTECTED]>
> 
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:turbine-maven-user-
> [EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:turbine-maven-user-
> [EMAIL PROTECTED]>
> 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to