Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 13188 invoked from network); 16 Oct 2009 23:15:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Oct 2009 23:15:27 -0000 Received: (qmail 27891 invoked by uid 500); 16 Oct 2009 23:15:24 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 27789 invoked by uid 500); 16 Oct 2009 23:15:24 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 27779 invoked by uid 99); 16 Oct 2009 23:15:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Oct 2009 23:15:24 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [209.85.222.203] (HELO mail-pz0-f203.google.com) (209.85.222.203) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Oct 2009 23:15:14 +0000 Received: by pzk41 with SMTP id 41so2149054pzk.0 for ; Fri, 16 Oct 2009 16:14:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.170.4 with SMTP id s4mr230480rve.273.1255734892577; Fri, 16 Oct 2009 16:14:52 -0700 (PDT) In-Reply-To: <1f3854d50910161303x3fbb66efw1e6673884a347a6c@mail.gmail.com> References: <1f3854d50910161152v3d420bfgfdbd7eeab6406186@mail.gmail.com> <1f3854d50910161208q10aa90dbwb943e8b881bf657c@mail.gmail.com> <1f3854d50910161259m366b66fdpc6a1518440df6b05@mail.gmail.com> <1f3854d50910161303x3fbb66efw1e6673884a347a6c@mail.gmail.com> Date: Fri, 16 Oct 2009 16:14:52 -0700 Message-ID: Subject: Re: Hosting a local repo w/out a Repo Manager? From: Rob Slifka To: Maven Users List Content-Type: multipart/alternative; boundary=000e0cd2c16234464f0476159002 X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd2c16234464f0476159002 Content-Type: text/plain; charset=ISO-8859-1 Hi everyone, Nexus went in and is working without a hitch! I'm proxying everything through the single /public group and it's working well. The only question I have now is how to lock down the proxying behaviour, with respect to the workflow I mentioned previously. Everyone points to /public although it's proxying for live, remote repos. I'd like Maven to error when something isn't found in the public repo, rather than proxy through Nexus and download a new dependency we haven't "blessed". Do I just remove all repositories from the search list of the public group? Rob On Fri, Oct 16, 2009 at 1:03 PM, Quintin Beukes wrote: > Here is the nexus book. It explains where to get it, how to install it > and how to use it. Took me about 10 minutes from where I finished > downloading it for the first time, till where it was setup and > configured with scheduled tasks and hosted for the whole network, > integrated into the system init, the works. > > The book: http://www.sonatype.com/books/nexus-book/reference/ > > And re. your question of having Maven use ONLY nexus, no matter the > repository, here it is: > > http://www.sonatype.com/books/nexus-book/reference/maven-sect-single-group.html > This way the manager will have it's repositories setup, and maven will > query the manager with the group/artifact id and version, and the > manager will look in it's own indexes for the artifact, no matter from > which repository it actually came or how it got into your manager's > repository. > > Quintin Beukes > > > > On Fri, Oct 16, 2009 at 9:59 PM, Quintin Beukes > wrote: > > In the nexus book they use that as an example. > > > > You basically do it when you configure the element in your > > settings.xml. By matching the mirror against everything, then maven > > will query your Nexus no matter what the repository's URL is. > > > > Quintin Beukes > > > > > > > > On Fri, Oct 16, 2009 at 9:55 PM, Rob Slifka wrote: > >> Alright, alright! :) > >> I'll have a look at Nexus and go from there. > >> > >> Is there a way to tell Maven "Only look at the Nexus repo, fail > otherwise" ? > >> > >> Perhaps it will become clear after using Nexus. > >> > >> Rob > >> > >> On Fri, Oct 16, 2009 at 12:08 PM, Quintin Beukes >wrote: > >> > >>> > I'd like to think of a repo manager as "part of using maven 2". > >>> > >>> This is a very good way of seeing it. If you don't see it as yet > >>> another complexity added into the build process, but accepting it as > >>> part of Maven in the first place, then you remove this "extra > >>> complexity". I completely understand your goal of wanting to keep > >>> things simple, and do this myself all the time as well, but some > >>> things are of such great benefits that the complexity is completely > >>> outweighed. Maven is one of them, and the repo manager is a part of > >>> "Maven" (the idea, not just the software). > >>> > >>> Q > >>> > >>> --------------------------------------------------------------------- > >>> 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 > > --000e0cd2c16234464f0476159002--