However I don't think you can specify the local repository location inside the pom.xml.
There is a scenario where this would be useful. The scenario is basically that the repository sits inside of ClearCase and is branched/labeled based on the project that depends on it. Thus if I had a branch of a project, a branch name could be applied the the vob containing the repository that would in effect define which set of jars would be available to the project. Further this could be used to define the set of plugins available to the project. As it stands now I can reference this repository using a URL similar to "file://../../repo". However it still ends up copying the jars to the "local" repository. 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 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]
