You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by iamanandkris <ia...@gmail.com> on 2012/11/01 14:14:20 UTC

Multiple Local Repositories

Hi 

Can we have more than one local maven repositories in a computer? So that I
can use one repo for on of my projects and other for other projects?

If so can some one pls give some guide lines on how to facilitate that?

Thank you
Anand



--
View this message in context: http://maven.40175.n5.nabble.com/Multiple-Local-Repositories-tp5729020.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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


Re: Multiple Local Repositories

Posted by hanasaki <ha...@hanaden.com>.
Generally good to just have one local repo per user.  This defaults to
	~/.m2/repository

Based on the pom.xml all the needed dependencies will be pulled from the
remote repos automatically so : no worries.

If you really want more than one local repo for the same user id, take a
look at settings.xml:
	http://maven.apache.org/run-maven/index.html#Quick_Start
	http://maven.apache.org/guides/mini/guide-configuring-maven.html

In continuous integration - it may be good to have one local repository
per project and a script that deletes the local repository before a
nightly build is performed; else if someone changes the coordinates of a
project, cruft can result in build issues that are hard to track down.

-

-------- Original Message --------
Subject: Multiple Local Repositories
From: iamanandkris
To: users@maven.apache.org
Date: 11/01/2012 08:14 AM

> Hi 
> 
> Can we have more than one local maven repositories in a computer? So that I
> can use one repo for on of my projects and other for other projects?
> 
> If so can some one pls give some guide lines on how to facilitate that?
> 
> Thank you
> Anand
> 
> 
> 
> --
> View this message in context: http://maven.40175.n5.nabble.com/Multiple-Local-Repositories-tp5729020.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 

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


Re: Multiple Local Repositories

Posted by Ansgar Konermann <an...@googlemail.com>.
During "normal" use of maven, one repository should be shared between your
projects.

Why do you feel the need to have separate repositories for each of your
projects?
Am 02.11.2012 02:26 schrieb "iamanandkris" <ia...@gmail.com>:

> Hi
>
> Can we have more than one local maven repositories in a computer? So that I
> can use one repo for on of my projects and other for other projects?
>
> If so can some one pls give some guide lines on how to facilitate that?
>
> Thank you
> Anand
>
>
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Multiple-Local-Repositories-tp5729020.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Multiple Local Repositories

Posted by Richard Vowles <ri...@bluetrainsoftware.com>.
Use a different settings file. and configure the right dir in each one:

http://jan.baresovi.cz/dr/en/maven-command-line
and
http://maven.apache.org/settings.html


On Fri, Nov 2, 2012 at 2:14 AM, iamanandkris <ia...@gmail.com> wrote:

> Hi
>
> Can we have more than one local maven repositories in a computer? So that I
> can use one repo for on of my projects and other for other projects?
>
> If so can some one pls give some guide lines on how to facilitate that?
>
> Thank you
> Anand
>
>
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Multiple-Local-Repositories-tp5729020.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
---
Richard Vowles,
Grails, Groovy, Java, Javascript, AngularJS
Consistency is the last refuge of the unimaginative - Oscar Wilde
ph: +64275467747, google+:http://rvowl.es/UX8Bmq
podcast: http://www.illegalargument.com