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 BF655107F9 for ; Sun, 28 Jul 2013 10:53:59 +0000 (UTC) Received: (qmail 98767 invoked by uid 500); 28 Jul 2013 10:53:56 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 98530 invoked by uid 500); 28 Jul 2013 10:53:55 -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 98521 invoked by uid 99); 28 Jul 2013 10:53:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Jul 2013 10:53:53 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of aheritier@gmail.com designates 209.85.216.177 as permitted sender) Received: from [209.85.216.177] (HELO mail-qc0-f177.google.com) (209.85.216.177) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Jul 2013 10:53:47 +0000 Received: by mail-qc0-f177.google.com with SMTP id e11so1812078qcx.22 for ; Sun, 28 Jul 2013 03:53:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:from:mime-version:in-reply-to:date:message-id:subject:to :content-type:content-transfer-encoding; bh=CDfCxdAOc8NnZLOREzoD5+MWcm0yrfpWNkfpPuLoawg=; b=C07Zke7JFPMT+u0pY/hb4ZdpXKp6SKr412tsv6jREGEE5Xfmpuc0zP90LzbCp05L0N mbtlALDFv493uu1ZyW05R3za6FjUXvgbeOByK0lju+RWEe9T4kga9xlZToiWc2ruog+8 IG2Aq+d03KAGf0viOHe3zMSaG/BQgfYaP7g3v8ZlfyyRsCab+kkIl4Cg9qHde9+CV9Ai 2oIL5tTTz+KovqR6e+U43aW61tQCVmfV2/uvR9I9X2ZhCxGVI9SDuC3zoVf0ETgj7W3g 7rJ5ZD804GE5XhiblWLHGgYJ3c9iy+kTeSfw8wxgQ4H2UmA4TYAiWpJFAg+pJaRr2+LE GgzA== X-Received: by 10.49.0.170 with SMTP id 10mr13986728qef.3.1375008806352; Sun, 28 Jul 2013 03:53:26 -0700 (PDT) References: <10600816.9262.1375005790481.JavaMail.mobile-sync@vecoo8> From: =?ISO-8859-1?Q?Arnaud_H=E9ritier?= Mime-Version: 1.0 (1.0) In-Reply-To: <10600816.9262.1375005790481.JavaMail.mobile-sync@vecoo8> Date: Sun, 28 Jul 2013 12:53:25 +0200 Message-ID: <744286017747773273@unknownmsgid> Subject: Re: Changes in how exclusions are applied transitively ? To: Maven Users List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Maybe it is documented in aether release note ? We probably should add a link to it or include it in our release note. This is the problem to have a core component outside of the project. It makes it difficult to have a global overview of all changes done in the project itself and all its dependencies updates. --------- Arnaud Le 28 juil. 2013 =E0 11:55, Stanimir Stamenkov a =E9c= rit : > [See my reply below the quote.] > > Wed, 24 Jul 2013 20:20:49 +0200, /Gr=E9gory Joseph/: > >> I can't seem to find an accurate trace of this in the release notes, >> so I thought I'd just ping the list - Changes in how exclusions are >> applied transitively between Maven 2.2.1 and 3.1 ? >> >> Here's a situation: A has dependencies on B and C. Both transitively >> depend on D (through X, which is irrelevant, I think) but B excludes >> it (on its dep declaration of X) >> >> With 2.2.1, D was (wrongly imo) excluded from A (depending on >> dependency order, seemingly) >> >> With 3.1, it appears to behave "correctly". >> >> Since I'm stuck with 2.2.1 for a bit, I'm facing a situation right now >> where I need to work around the bug, currently by removing the >> exclusions. That's currently OK, but at some point, those exclusions >> will be re-added (in A or in a new project) and we'll face the same >> issue again, without any clue as to why. >> >> How have people dealt with this so far ? > > I'm not sure I fully understand you, but I'm also stuck with Maven > 2.2.1 currently, and I've noticed when excluding a transitive > dependency it excludes it from other dependencies which have it as a > transitive dependency. The other dependencies I don't want to > exclude the transitive dependency from are either "test" or > "provided" (needed only during build, actually). To workaround this > I've declared the dependency I want to exclude as "provided" in a > 'dependencyManagement' section, so it doesn't get included > automatically in WAR and similar packages. See if this approach > might help you, too. > > -- > Stanimir > > --------------------------------------------------------------------- > 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