Thanks, I'll look into that.

As a side question is it possible to define the local repository in the
pom.xml rather than in the settings.xml?  I'm pretty sure this was
possible in m1, just not sure how to do it in m2.

The reasoning behind this (from a CM perspective at least) is that if a
jar can't be retrieved from the remote repository into the project's
local cache then the build should fail.  The reason it should fail is
because if someone had a clean machine where they had never tried to
build the project, the build would fail for them, thus the build isn't
reproducible.

Basically what I'm trying to avoid is mixing jar's from two or more
branches of a project into a single local repository.  I'd rather each
branch use a separate local cache so that I know I'm not accidentally
grabbing jars from a newer version.



MAR

-----Original Message-----
From: Jason van Zyl [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 17, 2005 7:09 PM
To: Maven Users List
Subject: RE: [m2] Local vs Remote Repository

On Mon, 2005-10-17 at 09:11 -0600, Russell, Mark wrote:

> I realize this is not would most would consider a "normal" usage
> scenario, and quite frankly I agree it's not.  Unfortunately I happen
to
> work for a company that wants to put the repository into ClearCase

Fair enough and we are going to support that as there is an SCM Wagon
provider but you will still have to move artifacts from the remote to
local repositories. We're not going to be changing Maven internally
where the remote repo is the local repo as well. I think you can do at
least start trying to do what you need to do:

http://blogs.codehaus.org/people/brett/archives/001066_storing_your_mave
n_repository_in_cvssubversion.html

> 
> MAR
> 
> 
> -----Original Message-----
> From: Edwin Punzalan [mailto:[EMAIL PROTECTED] 
> Sent: Friday, October 14, 2005 6:20 PM
> To: Maven Users List
> Subject: Re: [m2] Local vs Remote Repository
> 
> Hi.
> 
> A repository is a place for m2 to get artifacts.  I doubt if that can
be
> 
> disabled though.
> 
> There is, however, "-o" which will disable all remote activities in 
> m2... yes, it disables the retrieval of artifacts from the repository,

> but also other offlince tasks like scm activities.
> 
> The local repository is a cache of the remote repository for used 
> artifacts. 
> 
> I haven't tried specifying the local repo as the remote repo in
pom.xml 
> (I'm don't recommend this btw), but I guess that should work if you're

> sure to have all your artifacts in that repo.
> 
> 
> Russell, Mark wrote:
> 
> >Is it possible to configure a project (pom.xml) to use a repository
> >located on disk, without the build copying jars from that repository
to
> >the "local" repository in the users profile?
> >
> > 
> >
> >Additionally, can this be done without pointing the pom.xml to the
> >"local" repository in the users profile.
> >
> > 
> >
> >MAR
> >
> >
> >  
> >
> 
> ---------------------------------------------------------------------
> 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]
> 
> 
-- 
jvz.

Jason van Zyl
jason at maven.org
http://maven.apache.org

We all have problems. How we deal with them is a measure of our worth.

 -- Unknown


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

Reply via email to