From notifications-return-15124-apmail-ant-notifications-archive=ant.apache.org@ant.apache.org Thu Jan 13 03:42:15 2011 Return-Path: Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: (qmail 16931 invoked from network); 13 Jan 2011 03:42:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Jan 2011 03:42:15 -0000 Received: (qmail 83313 invoked by uid 500); 13 Jan 2011 03:42:15 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 83053 invoked by uid 500); 13 Jan 2011 03:42:13 -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 82916 invoked by uid 99); 13 Jan 2011 03:42:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Jan 2011 03:42:12 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Jan 2011 03:42:10 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p0D3fmxS014363 for ; Thu, 13 Jan 2011 03:41:48 GMT Message-ID: <3264508.335201294890108685.JavaMail.jira@thor> Date: Wed, 12 Jan 2011 22:41:48 -0500 (EST) From: "Lorin K (JIRA)" To: notifications@ant.apache.org Subject: [jira] Created: (IVY-1258) Multiple copies of dependency grabbed when it is both direct and transitive 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 Multiple copies of dependency grabbed when it is both direct and transitive --------------------------------------------------------------------------- Key: IVY-1258 URL: https://issues.apache.org/jira/browse/IVY-1258 Project: Ivy Issue Type: Bug Components: Core Affects Versions: 2.2.0 Environment: Any Reporter: Lorin K Kind of a complicated edge case, but very central to the way our build is laid out: If you have a direct dependency on a shared component, that is also a transitive dependency, and you use force="true" to force a particular version of the shared component to be resolved, in some cases you can end up with multiple versions getting downloaded. As far as we can tell this only occurs in the following scenario: * There is more than one transitive dependency on the shared library * The components that depend on the shared dependency reference it with a range * The ranges are not identical in the two components that reference the shared library For example: two versions of shared exist, 2.1.1 and integration-0.0.0 In ivy.xml In in direct_dependency ivy.xml: In component_a ivy.xml: In component_b ivy.xml If the references to 'shared' in component_a and component_b are both ranges and not exactly the same, we end up with both shared-integration-0.0.0 and shared-2.1.2 getting downloaded. If either reference is _not_ a range, or if both ranges are identical, then shared-2.1.2 is evicted and only integration-0.0.0 is downloaded. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.