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 9A89ACAB8 for ; Tue, 4 Jun 2013 07:38:14 +0000 (UTC) Received: (qmail 98265 invoked by uid 500); 4 Jun 2013 07:38:10 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 97989 invoked by uid 500); 4 Jun 2013 07:38:09 -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 97981 invoked by uid 99); 4 Jun 2013 07:38:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Jun 2013 07:38:07 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gcjtmu-turbine-maven-user-846@m.gmane.org designates 80.91.229.3 as permitted sender) Received: from [80.91.229.3] (HELO plane.gmane.org) (80.91.229.3) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Jun 2013 07:37:59 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UjloF-000439-Ps for users@maven.apache.org; Tue, 04 Jun 2013 09:37:35 +0200 Received: from mail.scalaris.com ([62.154.225.82]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Jun 2013 09:37:35 +0200 Received: from Joerg.Schaible by mail.scalaris.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Jun 2013 09:37:35 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: users@maven.apache.org From: =?UTF-8?B?SsO2cmc=?= Schaible Subject: Re: Transitive Dependency Question Date: Tue, 04 Jun 2013 09:37:24 +0200 Organization: Scalaris AG Lines: 30 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: mail.scalaris.com User-Agent: KNode/4.10.2 X-Virus-Checked: Checked by ClamAV on apache.org Hi Jamal, Jamal B wrote: > Interesting.... > > Taking your suggestion, it looks like it is coming in from another compile > dependency, and was "promoted" to compile. > > [INFO] +- org.apache.maven.shared:maven-shared-jar:jar:1.1:compile > [INFO] | +- org.codehaus.plexus:plexus-digest:jar:1.0:compile > [INFO] | | \- > org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:compile > [INFO] | | +- junit:junit:jar:3.8.1:compile > > Is there a way to prevent this from happening without having to add > exclude stanzas across projects where this is happening? You can control this with a dependencyManagement section of a shared parent. Just define there junit:junit: and the scope. The annoying part is nevertheless that the situation is no longer obvious in M3. Try this in M2 and you'll see that the dependency makes much more sense. Since the same plugin produces different output, I blame the new Aether backend here which favors now the "nearest" occurrence without taking the inherited scope into account. While this behavior has no impact on the resulting class path, it hides dependency problems like the one, you have encountered here. - Jörg --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org