Return-Path: Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: (qmail 9065 invoked from network); 16 Apr 2009 21:20:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Apr 2009 21:20:46 -0000 Received: (qmail 59650 invoked by uid 500); 16 Apr 2009 21:20:46 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 59578 invoked by uid 500); 16 Apr 2009 21:20:45 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 59569 invoked by uid 99); 16 Apr 2009 21:20:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Apr 2009 21:20:45 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Apr 2009 21:20:37 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E3ABA234C004 for ; Thu, 16 Apr 2009 14:20:15 -0700 (PDT) Message-ID: <1472131364.1239916815924.JavaMail.jira@brutus> Date: Thu, 16 Apr 2009 14:20:15 -0700 (PDT) From: "John Gibson (JIRA)" To: notifications@ant.apache.org Subject: [jira] Updated: (IVY-1067) Exclusions not properly applied to circular dependencies In-Reply-To: <1314871069.1239916334984.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/IVY-1067?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] John Gibson updated IVY-1067: ----------------------------- Attachment: circular_dependency_bug.tgz Here is a test case illustrating the issue. There is a single dependency, dom4j#dom4j 1.5.2 and several exclusion requests in the ivy file. A single dependency exclude of icu4j, a global exclusion of tagsoup, and a global exclusion of the StAX API. The first two are transitive dependencies of dom4j by way of jaxen. The last is a direct dependency of dom4j. Jaxen has a circular dependency on dom4j and the exclusion calculations for all of its dependencies is not reliable. If you run 'ant test' you should see that the lib directory contains icu4j and tagsoup despite their explicit exclusion. However, you'll also notice that the exclusion of the StAX API was successful. Note that there is also an override to force jdom to 1.0 because the jdom b10 release on repo1.maven.org has a bad version in the POM file. It shouldn't affect the outcome of the test. > Exclusions not properly applied to circular dependencies > -------------------------------------------------------- > > Key: IVY-1067 > URL: https://issues.apache.org/jira/browse/IVY-1067 > Project: Ivy > Issue Type: Bug > Affects Versions: 2.0, 2.1.0-RC1 > Environment: % java -version > java version "1.5.0_16" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284) > Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing) > % ant -version > Apache Ant version 1.7.0 compiled on August 25 2008 > Reporter: John Gibson > Attachments: circular_dependency_bug.tgz > > > Exclusion rules are not applied properly to circular dependencies. > Specifically, in doesCallersExclude() in org.apache.ivy.core.resolve.IvyNodeCallers this return condition: > if (callersStack.contains(node.getId())) { > return false; > } > causes the process to abort before reaching the exclusion rules at the top-level module. > I examined the source for 2.1.0 RC1, but I've experienced the same behavior under 2.0.0. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.