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 9BD2D82CB for ; Wed, 7 Sep 2011 16:28:04 +0000 (UTC) Received: (qmail 47344 invoked by uid 500); 7 Sep 2011 16:28:02 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 47204 invoked by uid 500); 7 Sep 2011 16:28:01 -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 47196 invoked by uid 99); 7 Sep 2011 16:28:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Sep 2011 16:28:01 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of waynefay@gmail.com designates 209.85.212.41 as permitted sender) Received: from [209.85.212.41] (HELO mail-vw0-f41.google.com) (209.85.212.41) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Sep 2011 16:27:54 +0000 Received: by vwm42 with SMTP id 42so6326658vwm.28 for ; Wed, 07 Sep 2011 09:27:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=DYVEBJoFWy1wNplqOJk1yE5e1dKzLTKKt4kWQlk7Y6I=; b=e+AT2pr6aXTa6bB3HQglcy5h2IQI56inIu0QmqsJO7C/we5Cz8dAG5HneFiAviu7Of h6xJtANNX2tMbf3meZ0JdCiY9s2o+3FJDUXqE6elKQBco8elxGAEbf+TvLKecT2c/HZ4 WereuZ+oUY4pA30kqURlGyHQKx6h8XCE5g89E= Received: by 10.52.173.174 with SMTP id bl14mr3677670vdc.484.1315412854111; Wed, 07 Sep 2011 09:27:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.150.142 with HTTP; Wed, 7 Sep 2011 09:27:14 -0700 (PDT) In-Reply-To: References: From: Wayne Fay Date: Wed, 7 Sep 2011 11:27:14 -0500 Message-ID: Subject: Re: Dependency resolution problem To: Maven Users List Content-Type: text/plain; charset=UTF-8 > P -> A (1.1.0) -> B (2.1.0) > P -> B (1.3.0) > > should cause a build failure, a setup like > > P -> A (1.1.0) -> B (1.5.0) > P -> B (1.3.0) > > should not, but we have to guarantee, that B (1.5.0) is resolved, not B > (1.3.0), which is not the standard maven dependency resolution. Locking down versions of dependencies with [x.y] should get you at least some of the way there. You should also be using pluginManagement and dependencyManagement to specify versions of things in one place (in the parent P) to avoid some of this in the first place. The versions plugin may also be something that you should look at. Wayne --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org