maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Trygve Laugstøl <trygv...@student.matnat.uio.no>
Subject Re: installing maven
Date Sun, 24 Aug 2003 11:39:36 GMT
On Fri, 22 Aug 2003, Thakkar, Hetal wrote:

> I am running in to the following problem while trying to install maven.
>
> I downloaded the Maven zip file and extracted it.
> I also setup the MAVEN_HOME and PATH variables.
>
> But I cannot run the %MAVEN_HOME%\bin\install_repo.bat
> %HOME%\.maven\repository command since install_repo.bat does not exist.
> I am not sure what is going wrong. Also, two days back on 20th the
> instructions were different for installing then now.
>
> If I try to run maven without running the install_repo.bat then I get
> the following error, regardless of the parameters passed to maven:
> java.net.MalformedURLException: unknown protocol: c
>         at java.net.URL.<init>(URL.java:586)
>         at java.net.URL.<init>(URL.java:476)
>         at java.net.URL.<init>(URL.java:425)
>         at com.werken.forehead.Forehead.loadFileOrUrl(Forehead.java:401)
>         at com.werken.forehead.Forehead.load(Forehead.java:322)
>         at com.werken.forehead.Forehead.config(Forehead.java:245)
>         at com.werken.forehead.Forehead.config(Forehead.java:131)
>         at com.werken.forehead.Forehead.main(Forehead.java:571)
>
> Could this be because I am behind a firewall?
>
> Any suggestions will be appriciated.
>
> Thanks,
> Hetal
>

This is because you have specified a url as 'c:\...' and the format of a
url is 'protocoll:', so it is interpreted a the protocoll 'c' (as the
exception says)

What you want is to say that you want to specify a file url, thus:
'file://c:/'

I'm not sure if 'file:c:/' is the actual right way, but the first variant
always works for me :)

Trygvis

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


Mime
View raw message