I created a network first to try it out instead of webserver, but
unfortunately it did not work :
What I did was :

                - created a network share on server.
                - assigned write permissions on that to me only,
everyone read.
                - create a environment variable in OS - WinXP
                - and refer that environment variable in settings.xml

                <localRepository>${serverShareName}</localRepository>

On this share, I had already placed all repository contents.

Though it seems unusual to refer it as local, it did not work. I am not
sure If took right steps, may be someone else give some pointers on this
?

Regards.        

-----Original Message-----
From: Nick Stolwijk [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 30, 2006 4:20 PM
To: Maven Users List
Subject: Re: How to disable creation of cache repository under
c:\Document s an d Settings\user\m2\.. ?


I tried to say, that the programs run by Maven2 needs the jar files 
locally. i.e. when you use Maven to compile something it calls javac 
with a classpath set to the jar files specified in your POM. Javac uses 
the classpath to locate the jar files and as far as I know, Javac can't 
work with remote files.

What you can do is try to do create a network share and put the "local" 
repository there. I don't have any experience with this, but I think it 
may work.

HTH,

Nick Stolwijk

Sharma, Jaikumar wrote:
> Does it mean that maven2 can not retrieve artifacts (jars etc) from 
> remote repositories ? Or something else ? Regards.
> 
> -----Original Message-----
> From: Nick Stolwijk [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 30, 2006 4:07 PM
> To: Maven Users List
> Subject: Re: How to disable creation of cache repository under
> c:\Documents an d Settings\user\m2\.. ?
> 
> 
> I don't think that the programs that are run by Maven2 (like javac and
> java) can use remote jar files, so they have to be present on the
local 
> hard disk.
> 
> HTH,
> 
> Nick Stolwijk
> 
> Sharma, Jaikumar wrote:
>> Is there a way to disable creation of cache repository under
>> c:\documents and setting\user\m2\... ? I have configured local 
>> intranet repository for plugins and dependencies.
>>  
>> I want this to be downloaded everytime user runs build and not to
>> cumulate everything on every machine under C:\Documents and 
>> Settings\user\m2\..
>>  
>> Thanks.
>>  
>> Regards.
>>  
>>  
>>  
>>  
>> - - - - - - - DISCLAIMER- - - - - - - -
>> Unless indicated otherwise, the information contained in this message
>> is privileged and confidential, and is intended only for the use of 
>> the
>> addressee(s) named above and others who have been specifically
> authorized to
>> receive it. If you are not the intended recipient, you are hereby
> notified
>> that any dissemination, distribution or copying of this message 
>> and/or attachments is strictly prohibited. The company accepts no 
>> liability
> for any
>> damage caused by any virus transmitted by this email. Furthermore, 
>> the company does not warrant a proper and complete transmission of 
>> this information, nor does it accept liability for any delays. If you

>> have received this message in error, please contact the sender and 
>> delete
> the
>> message. Thank you.
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> - - - - - - - DISCLAIMER- - - - - - - -
> Unless indicated otherwise, the information contained in this message 
> is privileged and confidential, and is intended only for the use of 
> the
> addressee(s) named above and others who have been specifically
authorized to
> receive it. If you are not the intended recipient, you are hereby
notified
> that any dissemination, distribution or copying of this message and/or
> attachments is strictly prohibited. The company accepts no liability
for any
> damage caused by any virus transmitted by this email. Furthermore, the
> company does not warrant a proper and complete transmission of this
> information, nor does it accept liability for any delays. If you have
> received this message in error, please contact the sender and delete
the
> message. Thank you.
> 


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

- - - - - - - DISCLAIMER- - - - - - - -
Unless indicated otherwise, the information contained in this message is
privileged and confidential, and is intended only for the use of the
addressee(s) named above and others who have been specifically authorized to
receive it. If you are not the intended recipient, you are hereby notified
that any dissemination, distribution or copying of this message and/or
attachments is strictly prohibited. The company accepts no liability for any
damage caused by any virus transmitted by this email. Furthermore, the
company does not warrant a proper and complete transmission of this
information, nor does it accept liability for any delays. If you have
received this message in error, please contact the sender and delete the
message. Thank you.

Reply via email to