You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Hamza Hydri <ha...@gmail.com> on 2005/03/18 10:39:42 UTC

setting dependencies in the build.xml file ?

Hi,

I have my build.xml file created using the Ant plugin. in this I have
a target to get my dependencies .... by default it tries to connect to
www.ibiblio.org for getting them ... i want it to load them locally.

I have set the build.properties file as maven.mode.online=false

and given this code in the build.xml file

<target name="get-deps" unless="noget" depends="init">

    <setproxy>
    </setproxy>
    <get dest="${libdir}/bsh.jar" usetimestamp="true"
ignoreerrors="true"
src="${user.home}/.maven/repository/mytest/jars/some.jar">
    </get>

it gives me a MalformedURL exception error.

can any one hint at what mistake I am doing here ?

thnx in advance

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


Re: setting dependencies in the build.xml file ?

Posted by Hamza Hydri <ha...@gmail.com>.
Hi All,

got my solution my error had to specify the protocol in the link .... 

src="file:///${user.home}/.maven/repository/mytest/jars/some.jar">

its working fine now.

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