Return-Path: Delivered-To: apmail-ant-ivy-user-archive@www.apache.org Received: (qmail 2572 invoked from network); 15 Apr 2009 22:31:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Apr 2009 22:31:26 -0000 Received: (qmail 34963 invoked by uid 500); 15 Apr 2009 22:31:26 -0000 Delivered-To: apmail-ant-ivy-user-archive@ant.apache.org Received: (qmail 34899 invoked by uid 500); 15 Apr 2009 22:31:26 -0000 Mailing-List: contact ivy-user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ivy-user@ant.apache.org Delivered-To: mailing list ivy-user@ant.apache.org Received: (qmail 34889 invoked by uid 99); 15 Apr 2009 22:31:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Apr 2009 22:31:26 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [66.195.65.182] (HELO stream57.com) (66.195.65.182) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Apr 2009 22:31:19 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C9BE19.D8CE6741" Subject: Exception When Directly Executing The Ivy JAR. Date: Wed, 15 Apr 2009 18:30:57 -0400 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Exception When Directly Executing The Ivy JAR. Thread-Index: Acm+GdiNDQY5SuzvQ06EGvQ0d9UDCA== From: =?iso-8859-1?Q?Georges_Labr=E8che?= To: X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C9BE19.D8CE6741 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, =20 I'm having issues when running ivy retrieve upon directly executing the = JAR instead of using the ivy:retrieve task in Ant. The reason I am doing this is because I am using NAnt and the exec task = instead of Ant and Ivy tasks. =20 For instance, the build.xml Ant script of the hello-ivy example = implements the following "resolve" target: =20 retrieve dependencies with = ivy"> =20 This works perfectly. =20 Porting this to a NAnt script would result in the following "resolve" = target: =20 =20 retrieve dependencies with = ivy"> =20 =20 Executing this task throws the following exception: =20 ----------------------------------------------------------------------- =20 [exec] Exception in thread "main" java.lang.RuntimeException: = problem durin g retrieve of Stream57#Cortex: java.lang.RuntimeException: Multiple = artifacts of the module commons-cli#commons-cli;1.0 are retrieved to the same file! = Update t he retrieve pattern to fix this error. [exec] :: retrieving :: Stream57#Cortex [exec] confs: [default] [exec] at = org.apache.ivy.core.retrieve.RetrieveEngine.retrieve(RetrieveEng ine.java:196) [exec] at org.apache.ivy.Ivy.retrieve(Ivy.java:540) [exec] at org.apache.ivy.Main.run(Main.java:268) [exec] at org.apache.ivy.Main.main(Main.java:168) [exec] Caused by: java.lang.RuntimeException: Multiple artifacts of = the mod ule commons-cli#commons-cli;1.0 are retrieved to the same file! Update = the retri eve pattern to fix this error. [exec] at = org.apache.ivy.core.retrieve.RetrieveEngine.determineArtifactsTo Copy(RetrieveEngine.java:349) [exec] at = org.apache.ivy.core.retrieve.RetrieveEngine.retrieve(RetrieveEng ine.java:102) [exec] ... 3 more =20 ----------------------------------------------------------------------- =20 The error message suggests to "update the retrieve pattern to fix this = error." So I have also tried the following: =20 =20 But the same exception is thrown. =20 Any ideas? =20 Thanks and Regards, =20 - Georges ------_=_NextPart_001_01C9BE19.D8CE6741--