You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Paul Galbraith <pa...@paulgalbraith.net> on 2005/10/15 22:00:07 UTC

Classpath for ant task

I'm trying to put an <ant:sql> task in my maven.xml (maven 1.0.2).  I get a 
class not found exception because the ant task cannot find the jdbc driver, 
although the jdbc driver is listed as a depency in my project.xml, and has 
been downloaded to the local repository.  If I use a jelly's sql library, 
the driver is found without any problem, so this seems specific to ant.  Is 
there any config setting in my project.xml / project.properties / maven.xml 
that will allow the ant:sql task to find the driver as it exists in my 
dependency classpath? 




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Classpath for ant task

Posted by Arnaud HERITIER <ah...@gmail.com>.
You must add the folowing property on your driver dependency :

<dependency>
	...
	<properties>
		<classloader>root</classloader>
	<properties>
</dependency>

Arnaud

> -----Message d'origine-----
> De : news [mailto:news@sea.gmane.org] De la part de Paul Galbraith
> Envoyé : samedi 15 octobre 2005 22:00
> À : users@maven.apache.org
> Objet : Classpath for ant task
> 
> I'm trying to put an <ant:sql> task in my maven.xml (maven 
> 1.0.2).  I get a class not found exception because the ant 
> task cannot find the jdbc driver, although the jdbc driver is 
> listed as a depency in my project.xml, and has been 
> downloaded to the local repository.  If I use a jelly's sql 
> library, the driver is found without any problem, so this 
> seems specific to ant.  Is there any config setting in my 
> project.xml / project.properties / maven.xml that will allow 
> the ant:sql task to find the driver as it exists in my 
> dependency classpath? 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org