My reply to Roberto....
---------- Forwarded message ----------
From: Dion Gillard <[EMAIL PROTECTED]>
Date: Oct 5, 2005 10:50 AM
Subject: Re: Installing Maven in a Network drive
To: Roberto Castro <[EMAIL PROTECTED]>
On 10/5/05, Roberto Castro <[EMAIL PROTECTED]> wrote:
> Hi, Brett and Dion, I installed Maven in a Windows network drive "G:" and
> moved local repository to network drive too.
> G:\
> +- Maven
> +- Apache Software Foundation
> +- Maven 1.0.2
> +- bin
> +- lib
> +- plugins
> +- LocalRepo
> +- .maven
> +- cache
> +- plugins
> +- repository
>
> To have lots of users using the same local repository, I started Maven this
> way:
> -------------------------------------
Having maven.home.local on a network drive is bad for performance in
my experience.
Not having a corporate/internal remote repo if you are using SNAPSHOTs
during development will also badly impact performance.
> set MY_GROUPID=MM-%USERNAME%
> call maven goaldefault -Dmaven.home.local=G:\Maven\LocalRepo\.maven
> -Dmm_groupid=%MY_GROUPID% . . .
> -------------------------------------
> So "G:\Maven\LocalRepo\.maven" is the network drive where I moved the local
> repository.
> I concateneted a string, wich identify my system "MM", with the username of
> each station in the variable "MY_GROUP".
> I configured "project.xml" file of the master project this way:
> <project>
> <pomVersion>1</pomVersion>
> <groupId>${mm_groupid}</groupId>
> . . .
> . . .
>
> The dependencies in "project.xml" of the subprojects are like the following:
> <dependency>
> <groupId>${mm_groupid}</groupId>
> <artifactId>spbmessage-${mm_domain}</artifactId>
> <version>${pom.currentVersion}</version>
> </dependency>
>
> At last, the local repository is this way:
> sample-echo [current directory]
> +- MM-roberto
> +- jars
> +- poms
> +- MM-luis
> +- jars
> +- poms
>
> This configurations is working fine now. Do you both see any problem in this
> configuration?
Introducing a variable as a replacement for a local repo seems like
overkill. Why not just go with the usual per user local repo, and
point the remote repo at a shared location? This seems to be less
effort and less complex.
> This way to make other developers in the same network to use Maven, I will
> have to configure MAVEN_HOME variable only.
> Thank you all for the help.
> Best regards,
>
> -----Mensagem original-----
> De: Dion Gillard [mailto:[EMAIL PROTECTED]
> Enviada em: terça-feira, 4 de outubro de 2005 01:00
> Para: Maven Users List; Roberto Castro
> Assunto: Re: Installing Maven in a Network drive
>
>
> What Brett suggests below is exactly what we do, and it works great.
>
> We use mavenproxy from codehaus as the 'internal remote repo'.
>
> On 10/4/05, Brett Porter <[EMAIL PROTECTED]> wrote:
> > On 10/4/05, Roberto Castro <[EMAIL PROTECTED]> wrote:
> > > Hi all, is it possible to install Maven in a Network drive? I would like
> > > to install Maven in a shared drive to be used by all MsWindows computers
> > > of all developers in the company's network.
> >
> > Yes, this should work just fine.
> >
> > > At least, I would like all developers to use the same local repository.
> > > To do this, I would like to move and configure Maven in all computers to
> > > use Local Repositoty in a shared drive.
> >
> > This is dangerous. It is not read only - so developers can write their
> > changes over someone elses as they work. It is instead recommended
> > that you build an internal "remote" repository for them to use (can
> > still be shared), but that their "local" repository is still their
> > personal space.
> >
> > - Brett
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> http://www.multitask.com.au/people/dion/
> "You are going to let the fear of poverty govern your life and your
> reward will be that you will eat, but you will not live." - George
> Bernard Shaw
>
>
> Atenção: Esta mensagem foi enviada para uso exclusivo do(s) destinatários(s)
> acima
> identificado(s), podendo conter informações e/ou documentos
> confidencias/privilegiados e seu sigilo é protegido por lei.
> Caso você tenha recebido por engano, por favor, informe o remetente e
> apague-a de
> seu sistema.
> Notificamos que é proibido por lei a sua retenção, disseminação,
> distribuição, cópia ou
> uso sem expressa autorização do remetente.
> Opiniões pessoais do remetente não refletem, necessariamente, o ponto de
> vista da
> CETIP, o qual é divulgado somente por pessoas autorizadas.
>
>
> Attention: This message was sent for exclusive use of the addressees above
> identified, being able to contain information and or privileged/confidential
> documents
> and law protects its secrecies.
> In case that you it has received for deceit, please, it informs the shipper
> and erases it
> of your system.
> We notify that law forbids its retention, dissemination, distribution, copy
> or use without
> express authorization.
> Personal opinions of the shipper do not reflect, necessarily, the point of
> view of the
> CETIP, which is only divulged by authorized people.
>
>
--
http://www.multitask.com.au/people/dion/
"You are going to let the fear of poverty govern your life and your
reward will be that you will eat, but you will not live." - George
Bernard Shaw
--
http://www.multitask.com.au/people/dion/
"You are going to let the fear of poverty govern your life and your
reward will be that you will eat, but you will not live." - George
Bernard Shaw
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]