Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 46553 invoked from network); 10 Nov 2009 21:48:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Nov 2009 21:48:16 -0000 Received: (qmail 6337 invoked by uid 500); 10 Nov 2009 21:48:15 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 6264 invoked by uid 500); 10 Nov 2009 21:48:15 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 6231 invoked by uid 99); 10 Nov 2009 21:48:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Nov 2009 21:48:15 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [209.86.89.69] (HELO elasmtp-mealy.atl.sa.earthlink.net) (209.86.89.69) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Nov 2009 21:48:11 +0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=earthlink.net; b=nYxGqH4sIY7OuvnCZe1fk0xAMeLTgD8cDf639mE4c2HEYWdPQit2qObAsLcHdlld; h=Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding:X-ELNK-Trace:X-Originating-IP; Received: from [129.33.49.251] (helo=tetra.raleigh.ibm.com) by elasmtp-mealy.atl.sa.earthlink.net with esmtpa (Exim 4.67) (envelope-from ) id 1N7yZ3-00047t-NK for dev@geronimo.apache.org; Tue, 10 Nov 2009 16:47:50 -0500 Message-ID: <4AF9DF85.7050200@earthlink.net> Date: Tue, 10 Nov 2009 16:47:49 -0500 From: Joe Bohn User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: dev@geronimo.apache.org Subject: Re: Could not build Geronimo server from SVN branch 2.2 References: <56B2273AB77DDA4E9216BD7639D129830426D64F@VMXYVR2.ds.mda.ca> <4AF892A2.8080702@gmail.com> <4AF89791.1040004@gmail.com> <4AF97EE0.1080100@earthlink.net> <4AF9CD98.9000405@earthlink.net> <67A165F2-121B-48C2-9A61-6DA04152677E@gmail.com> In-Reply-To: <67A165F2-121B-48C2-9A61-6DA04152677E@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ELNK-Trace: c408501814fc19611aa676d7e74259b7b3291a7d08dfec795abd37534f94eba0164164b69e48f910350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 129.33.49.251 Kevan Miller wrote: > > On Nov 10, 2009, at 3:31 PM, Joe Bohn wrote: > >> After looking into this some more and discussing it off-line with >> Jarek I've learned the following: >> >> - It isn't really returning a bogus pom or jar ... it is just >> returning a redirect. Maven wrongly assumes that this is the actual >> file that was requested and persists it as such. >> - Using Maven 2.2.1 (I was using 2.0.10) doesn't handle the redirects >> any better and so doesn't fix the problem. >> - For tags/2.1.4 maven 2.2.1 also causes other problems so it's best >> to stick with maven 2.1.10 of you are building Geronimo 2.1.* >> - org/apache/yoko/yoko/1.0/yoko-1.0.pom includes a repository list >> that points to https://maven-repository.dev.java.net/nonav/repositorid >> of java.net so this is why we are pulling in that repo >> - If I add the following to my settings.xml for maven I can avoid the >> redirect (and hence avoid the bogus poms/jars) and get beyond this >> problem to build Geronimo 2.1.4 using maven 2.0.10. >> >> >> >> java.net >> Mirror of >> https://maven-repository.dev.java.net/nonav/repository/ >> http://download.java.net/maven/1/ >> java.net >> >> > > Thanks Joe! I tried a mirror setting, but must not have gotten the > mirror setting correct... > > --kevan > I think they key is that the value in your mirror must match the that is used in the original reference to the repository. In the case of 2.1.4 it was pulling in yoko which had a parent pom with the following repository entry: java.net java.net Maven Repository https://maven-repository.dev.java.net/nonav/repository/ legacy So when I created my mirror in settings.xml I included "java.net" in my value. I also included the same value in the of my mirror but I don't think that is necessary. Joe