RE: How to disable creation of cache repository under c:\Document s an d Settings\user\m2\.. ?
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.
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]
RE: How to disable creation of cache repository under c:\Document s an d Settings\user\m2\.. ?
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
RE: How to disable creation of cache repository under c:\Document s an d Settings\user\m2\.. ?
I think what he meant is, he want the local files (i.e. local repository) to be alive only during the build period but not forever long. Is it possible to modify the mvn.bat to make it remove the directory after it did its work? or have a schedule job to delete the local repository everyday Regards, Adrian -Original Message- From: Nick Stolwijk [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 30, 2006 6:50 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] This email is confidential. If you are not the intended recipient, please delete it from your system and notify the sender immediately. Any unauthorized use, disclosure, dissemination or copying of this email is prohibited. Taifook Securities Group, its group companies and their content providers (Parties) shall not be responsible for the accuracy or completeness of this email or its attachment, if any, which could contain virus, be corrupted, destroyed, incomplete, intercepted, lost or arrive late. The Parites do not accept liability for any damage caused by this email. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to disable creation of cache repository under c:\Document s an d Settings\user\m2\.. ?
Thanks Nick, But don't you think that, placing tonns of dependencies / plugins on every developer machine is not a sound idea ? Being the fact that theses depedencies / plugins are alreay available on intranet repository, why not a mechanism on demand. Yes, If there is no way, and we want to mavenize then we have to go like this. Although, this doest not look sound. Regards. -Original Message- From: Nick Stolwijk [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 30, 2006 4:53 PM To: Maven Users List Subject: Re: How to disable creation of cache repository under c:\Documents an d Settings\user\m2\.. ? Let me ask you something else, why don't you want to cumulate everything on the local machines. As far as I can see, there is nothing wrong with that. (Maybe an exception is when the profiles you use are not local but remote profiles and the repository is synchronized every shutdown with the domain controller. Then you can move your local repository: [quote from http://wiki.wsmoak.net/cgi-bin/wiki.pl?Maven2] By default, Maven wants to place downloaded dependencies under your home directory. On Windows, that's C:\Documents and Settings\username.DOMAIN. (You will often see your home directory referred to as just '~' in documentation.) In some corporate environments, placing large numbers of files in this location can be problematic. For example, with roaming profiles enabled, *everything* in that directory will be synchronized with the server when you log out. To move your local repository to a different directory, place a 'settings.xml' file in the '.m2' directory (yes, the '.' is important) under your home directory. (Good luck creating the '.m2' directory if it doesn't already exist-- you'll have to do it at a command prompt as the Windows Explorer insists that you type a filename.) Example: ~/.m2/settings.xml settings localRepositoryC:\\java\\m2-repository/localRepository /settings [/quote] 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]
Re: How to disable creation of cache repository under c:\Document s an d Settings\user\m2\.. ?
I don't think that is a problem. Hard disks don't cost that much anymore (My local repository is now around 500 MB). The jars in the repository are all versioned. (as in, Maven2 automagically takes the right one, i.e. a specific version if you define that in your POM or a latest version available if you don't define it) Maybe once in a while you can empty the repository if it really takes too much space and get all the needed artifacts back in as you go. Even if you don't have a company wide repository and thus have to get the artifacts from the central repositories, how long would it take with current day Internet speed. And even the cost of getting it once and access them at disk speed versus getting them every time is in favor of getting it once. Maybe you could replace the repository to the OS temp folder and make sure your temp folder is cleaned every time you boot / shutdown. HTH, Nick Stolwijk Sharma, Jaikumar wrote: Thanks Nick, But don't you think that, placing tonns of dependencies / plugins on every developer machine is not a sound idea ? Being the fact that theses depedencies / plugins are alreay available on intranet repository, why not a mechanism on demand. Yes, If there is no way, and we want to mavenize then we have to go like this. Although, this doest not look sound. Regards. -Original Message- From: Nick Stolwijk [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 30, 2006 4:53 PM To: Maven Users List Subject: Re: How to disable creation of cache repository under c:\Documents an d Settings\user\m2\.. ? Let me ask you something else, why don't you want to cumulate everything on the local machines. As far as I can see, there is nothing wrong with that. (Maybe an exception is when the profiles you use are not local but remote profiles and the repository is synchronized every shutdown with the domain controller. Then you can move your local repository: [quote from http://wiki.wsmoak.net/cgi-bin/wiki.pl?Maven2] By default, Maven wants to place downloaded dependencies under your home directory. On Windows, that's C:\Documents and Settings\username.DOMAIN. (You will often see your home directory referred to as just '~' in documentation.) In some corporate environments, placing large numbers of files in this location can be problematic. For example, with roaming profiles enabled, *everything* in that directory will be synchronized with the server when you log out. To move your local repository to a different directory, place a 'settings.xml' file in the '.m2' directory (yes, the '.' is important) under your home directory. (Good luck creating the '.m2' directory if it doesn't already exist-- you'll have to do it at a command prompt as the Windows Explorer insists that you type a filename.) Example: ~/.m2/settings.xml settings localRepositoryC:\\java\\m2-repository/localRepository /settings [/quote] 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to disable creation of cache repository under c:\Document s an d Settings\user\m2\.. ?
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 ? Define 'did not work'. What seems to go wrong? I think Maven does not know (or care) wether it's a local or mounted disk. So if it doesn't work something is wrong in your sharing configuration or the env variable substitution. Still when you get this to work there may be some problem when using this with multiple developers. 1) If a developer has read-only permission and builds a project that requires an aditional artifact it fails because it can't save the file. Effectively it's like running mvn in offline mode. 2) Alternatively when you give all developers write permission there may be some funny race conditions when multiple clients add the same artifact to the shared repository. Anyway, just add a 'clean_respository.bat' if it bothers you I'd say ;) cheers, Bram -Original Message- From: Sharma, Jaikumar [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 30, 2006 1:10 PM To: Maven Users List Subject: RE: How to disable creation of cache repository under c:\Document s an d Settings\user\m2\.. ? 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