Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 80CE6101DC for ; Thu, 3 Oct 2013 10:11:43 +0000 (UTC) Received: (qmail 90142 invoked by uid 500); 3 Oct 2013 10:11:37 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 89889 invoked by uid 500); 3 Oct 2013 10:11:36 -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 89880 invoked by uid 99); 3 Oct 2013 10:11:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Oct 2013 10:11:35 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of anders.g.hammar@gmail.com designates 209.85.219.42 as permitted sender) Received: from [209.85.219.42] (HELO mail-oa0-f42.google.com) (209.85.219.42) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Oct 2013 10:11:29 +0000 Received: by mail-oa0-f42.google.com with SMTP id g12so2090140oah.15 for ; Thu, 03 Oct 2013 03:11:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=9mnakcnp6GbIpbgCo9mbq83/nINpy9S6Uzd7WiQMFj4=; b=jb9NPCrl4k7PU4Ffva93oaPC+LPd9Us4+1/l6aWqeziGhl39922YFnxovfS2M+gzCC Vq41vCpkd4J4N0ggzhtiDRY6VIjZVxsPApRlGIm0IRjld+p9t12Dj/BESTlOv9Zr0xQi 9nNswpJik3l4noZUu5EKs5snOei9vQsnz2OIy6tSgNOvqH6eKkbD6fpl9jvSJJsljZ4z OW/ngzdLK5VzXWuSCq3NxFemTXnl+q/0vQaRJpOWP7K6osf+PEcFFdvOq1xkcRy02xJD P6CFJYtdRZRNJQtrZK/jA/FVhD65PMro+JmGQrqW7ySoh6ccm2xdKpfp3W5QW33VHTZF A+2Q== MIME-Version: 1.0 X-Received: by 10.60.65.227 with SMTP id a3mr11241749oet.13.1380795068206; Thu, 03 Oct 2013 03:11:08 -0700 (PDT) Sender: anders.g.hammar@gmail.com Received: by 10.76.86.2 with HTTP; Thu, 3 Oct 2013 03:11:08 -0700 (PDT) In-Reply-To: <1380794897780-5772379.post@n5.nabble.com> References: <1380789193245-5772374.post@n5.nabble.com> <1380794897780-5772379.post@n5.nabble.com> Date: Thu, 3 Oct 2013 12:11:08 +0200 X-Google-Sender-Auth: HWYhcbeCMiE8E_lRFNGPcnGNOrY Message-ID: Subject: Re: Parent SNAPSHOT not resolved Maven 2.2.1 - 3.0.4 - (Nexus repo) From: Anders Hammar To: Maven Users List Content-Type: multipart/alternative; boundary=001a11c257008c5a3504e7d367e7 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c257008c5a3504e7d367e7 Content-Type: text/plain; charset=ISO-8859-1 It should be the same for deps as well as parents. One difference could be if you have a repo declared in the pom (not setiings.xml). It might be that that repo is only used for deps and not the parent, I don't know. /Anders On Thu, Oct 3, 2013 at 12:08 PM, NRO wrote: > I understand your point, but the explaination you provide is based on how > it > is implemented...and not on how it is specified. > > The fact that maven can resolve the same artifact when it is a dependency > means that it is not a limitation but an implementation issue. > > That looks bad to me to have to add a fake repository to have Maven resolve > the parent SNAPSHOT. > > Note that in my example the foo repository does not exist at all neither > http://foo URL. > It is juste a fake declaration in the settings.xml. > > This means that maven at the end, failover and still uses the mirror to go > to Nexus and retrieve the SNAPSHOT parent. > > Why (repo!=mirror) applies to Parent and not to project dependencies ? > > At the end we added the fake repo declaration to all our settings.xml, but > that's not very elegant, but it works. > > > > -- > View this message in context: > http://maven.40175.n5.nabble.com/Parent-SNAPSHOT-not-resolved-Maven-2-2-1-3-0-4-Nexus-repo-tp5772374p5772379.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > For additional commands, e-mail: users-help@maven.apache.org > > --001a11c257008c5a3504e7d367e7--