Return-Path: Delivered-To: apmail-maven-issues-archive@locus.apache.org Received: (qmail 56474 invoked from network); 2 Jun 2006 04:57:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Jun 2006 04:57:10 -0000 Received: (qmail 60434 invoked by uid 500); 2 Jun 2006 04:57:07 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 60347 invoked by uid 500); 2 Jun 2006 04:57:06 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 60334 invoked by uid 99); 2 Jun 2006 04:57:06 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Jun 2006 21:57:06 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [63.246.20.114] (HELO 63-246-20-114.contegix.com) (63.246.20.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Jun 2006 21:57:04 -0700 Received: (qmail 8288 invoked by uid 89); 2 Jun 2006 04:56:43 -0000 Received: from unknown (HELO codehaus01.managed.contegix.com) (127.0.0.1) by smtp.domain.com with SMTP; 2 Jun 2006 04:56:43 -0000 Message-ID: <112349572.1149224203947.JavaMail.haus-jira@codehaus01.managed.contegix.com> Date: Thu, 1 Jun 2006 23:56:43 -0500 (CDT) From: "Andreas Schildbach (JIRA)" To: issues@maven.apache.org Subject: [jira] Commented: (MNG-2326) exclusion of transitive dependency is too dominant In-Reply-To: <76519366.1148914123677.JavaMail.haus-jira@codehaus01.managed.contegix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://jira.codehaus.org/browse/MNG-2326?page=comments#action_66449 ] Andreas Schildbach commented on MNG-2326: ----------------------------------------- Because I don't need T in M. However, I can never be sure that D2 (or D3, ...) needs it. It's the concept of responsibility that I don't need to know about the transitive dependencies of my dependencies. Also, it could be the case that a dependency gets a new version, which now depends on T, but I never learn about it because it is excluded. In any case, the current (expected?) behaviour is not enough documented. Thus, I am re-opening this issue. You can count it as a documentation bug or a wishlist item. > exclusion of transitive dependency is too dominant > -------------------------------------------------- > > Key: MNG-2326 > URL: http://jira.codehaus.org/browse/MNG-2326 > Project: Maven 2 > Type: Bug > Components: Dependencies > Versions: 2.0.4 > Reporter: Andreas Schildbach > Assignee: Carlos Sanchez > Attachments: mng2326.zip > > > Please consider the following structure: I've got a module M that has got the dependencies D1 and D2. Both D1 and D2 depend on a transitive dependency T. > I have excluded T from D1 per on the M POM in the dependency to D1. > Now, one would expect that T is still pulled into M, because there is no exclusion on the D2 path. But this is not the case, "mvn site" on M is missing T (in the dependency report), and it is missing from the classpath, too. However "mvn eclipse:eclipse" on M does the job right: T is listed. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira