You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Russell, Mark" <Ma...@csgsystems.com> on 2005/10/14 22:27:04 UTC

[m2] Local vs Remote Repository

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


Re: [m2] Local vs Remote Repository

Posted by Edwin Punzalan <ep...@exist.com>.
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org