You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Trygve Laugstøl <tr...@student.matnat.uio.no> on 2003/08/25 10:34:02 UTC

Re: installing maven (fwd)

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


Re: installing maven (fwd)

Posted by di...@multitask.com.au.
Nah, it's a long standing bug in the release of Forehead we use. Forehead 
was fixed ages ago, but we haven't yet had a release of it as we were 
going to move to classworlds so long ago.
--
dIon Gillard, Multitask Consulting
Blog:      http://blogs.codehaus.org/people/dion/


Trygve Laugstøl <tr...@student.matnat.uio.no> wrote on 25/08/2003 
06:34:02 PM:

> 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
>