Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 86232 invoked from network); 11 Nov 2009 02:59:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Nov 2009 02:59:17 -0000 Received: (qmail 12661 invoked by uid 500); 11 Nov 2009 02:59:17 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 12490 invoked by uid 500); 11 Nov 2009 02:59: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 12482 invoked by uid 99); 11 Nov 2009 02:59:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Nov 2009 02:59:15 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of chirunhua@gmail.com designates 209.85.160.56 as permitted sender) Received: from [209.85.160.56] (HELO mail-pw0-f56.google.com) (209.85.160.56) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Nov 2009 02:59:12 +0000 Received: by pwj6 with SMTP id 6so447980pwj.35 for ; Tue, 10 Nov 2009 18:58:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=xxBPZuk2HkMwcpsgedCs3kxYXVS9Zt2Ee3fTqDCSnYc=; b=Bff3nwVD4jDim2it7ovX40nn9XGu9y66T+OBjLb4bUNie1zrd6Y2K8P3hhS+si0ByA EacPJAj/Kmat2Zw3BblDX/rJikJcwBWMFYZVXFSxmJbflMHf2fnLjSw5HVPD6G45RwJA hbiY44HBMBVOnR1KZizBx6p/nzmX+M2yf2soM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=KhWevFevNEizxlCtmwTCHS8K0rd0+1j/SNanrE9oBWzPOsxItosTFNn2lpdblxDpVk A6WyytTIPI1hWTHn/qFfbYrQUqa6NTl1OqpCEhjsjXo2iTyNQFdIj5gshx5Pvu9M6pVm QSXwMnqS6TQf8jLlqRiO60LKlZ6DDVZIG6Ek0= MIME-Version: 1.0 Received: by 10.140.171.20 with SMTP id t20mr56501rve.165.1257908332308; Tue, 10 Nov 2009 18:58:52 -0800 (PST) In-Reply-To: <4AF9DF85.7050200@earthlink.net> 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> <4AF9DF85.7050200@earthlink.net> Date: Wed, 11 Nov 2009 10:58:52 +0800 Message-ID: <98a659de0911101858l6626cef6rea1129fac06dd1c8@mail.gmail.com> Subject: Re: Could not build Geronimo server from SVN branch 2.2 From: chi runhua To: dev@geronimo.apache.org Content-Type: multipart/alternative; boundary=000e0cd29d4a4eaa0a04780f9b33 --000e0cd29d4a4eaa0a04780f9b33 Content-Type: text/plain; charset=ISO-8859-1 I update the page on GMOxDEV based on this discussion, anything incorrect, please let me know. http://cwiki.apache.org/GMOxDEV/building-apache-geronimo.html Jeff On Wed, Nov 11, 2009 at 5:47 AM, Joe Bohn wrote: > 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 > > > --000e0cd29d4a4eaa0a04780f9b33 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I update the page on GMOxDEV based on this discussion, anything incorr= ect, please let me know.
=A0
=A0
Jeff

On Wed, Nov 11, 2009 at 5:47 AM, Joe Bohn <joe.bohn@earthlin= k.net> wrote:
Kevan Miller wrote:

On Nov 10, 2009, at 3:31 PM,= Joe Bohn wrote:

After looking into this some mor= e 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 retur= ning a redirect. =A0Maven 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 redir= ect (and hence avoid the bogus poms/jars) and get beyond this problem to bu= ild Geronimo 2.1.4 using maven 2.0.10.

=A0 <mirrors>
=A0 = =A0 =A0 <mirror>
=A0 =A0 =A0 =A0 =A0 <id>java.net</id>
=A0 =A0 =A0 =A0 =A0 <name>Mirror of https://maven-repository.dev.java.net/nonav/repository/</name= >
=A0 =A0 =A0 =A0 =A0 <url>http://download.java.net/maven/1/</url>
= =A0 =A0 =A0 =A0 =A0 <mirrorOf>java.net</mirrorOf>
=A0 =A0 =A0 </mirror>
=A0 </mirrors>

Tha= nks Joe! I tried a mirror setting, but must not have gotten the mirror sett= ing correct...

--kevan


I think t= hey key is that the <mirrorOf> value in your mirror must match the &l= t;id> that is used in the original reference to the repository. =A0In th= e case of 2.1.4 it was pulling in yoko which had a parent pom with the foll= owing repository entry:

=A0 =A0 =A0 =A0<repository>
=A0 =A0 =A0 =A0 =A0 =A0<id><= a href=3D"http://java.net/" target=3D"_blank">java.net</id>
= =A0 =A0 =A0 =A0 =A0 =A0<name>java.net Maven Repository</name>

<url>https://maven-repository.dev.java.net/nonav/repos= itory/</url>
=A0 =A0 =A0 =A0 =A0 =A0<layout>legacy</l= ayout>
=A0 =A0 =A0 =A0</repository>

So when I created my mirror in se= ttings.xml I included "= java.net" in my <mirrorOf> value. =A0I also included the sam= e value in the <id> of my mirror but I don't think that is necess= ary.

Joe



--000e0cd29d4a4eaa0a04780f9b33--