Return-Path: Delivered-To: apmail-ant-ivy-user-archive@www.apache.org Received: (qmail 94102 invoked from network); 9 Apr 2008 16:06:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Apr 2008 16:06:03 -0000 Received: (qmail 18443 invoked by uid 500); 9 Apr 2008 16:05:51 -0000 Delivered-To: apmail-ant-ivy-user-archive@ant.apache.org Received: (qmail 18432 invoked by uid 500); 9 Apr 2008 16:05:51 -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 18411 invoked by uid 99); 9 Apr 2008 16:05:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Apr 2008 09:05:50 -0700 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of xavier.hanin@gmail.com designates 72.14.204.235 as permitted sender) Received: from [72.14.204.235] (HELO qb-out-0506.google.com) (72.14.204.235) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Apr 2008 16:05:06 +0000 Received: by qb-out-0506.google.com with SMTP id z1so2151995qbc.10 for ; Wed, 09 Apr 2008 09:05:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=gjSzq90crAqOnqZRtwyAVqZsXYFQpfrkDQOwMto5LIM=; b=mDbhsgqbFsSnq5dMUqyE+K2AkAI7PpjWk+jL6ZPt15DSVvU6UYclXz3HByW6LVwwTknzJsVJnxFoh9zhed2Q6hTVix8qSEMJ9YNZHavqA159xfBONwkvNfH5asoSt8KsSEJHXAXVIp3tPZ/+I8p24TJKrjgeH0pwicYowyCK7W0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=DC9zK9S88GvrdunKFNau53me2o8fuG+nm39ra7hiPfOnsyyX/V6fMf/FtEcNzneNZIk5XAwsn+PX+xh5CDwBJEXtsRFooUIrFbf+4Pr+1tVaSGsDV1KfpJuT0n8dwOcW9C5Ge5Et1hUbKSBsHZcHtJF0WaJOyI+tvgsR1YqSKbM= Received: by 10.143.16.13 with SMTP id t13mr73502wfi.331.1207757117428; Wed, 09 Apr 2008 09:05:17 -0700 (PDT) Received: by 10.142.255.15 with HTTP; Wed, 9 Apr 2008 09:05:17 -0700 (PDT) Message-ID: <635a05060804090905r9564ba6g7272c71f602a343a@mail.gmail.com> Date: Wed, 9 Apr 2008 18:05:17 +0200 From: "Xavier Hanin" To: ivy-user@ant.apache.org Subject: Re: Issues with install and iBiblio In-Reply-To: <16586962.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_12551_18384045.1207757117423" References: <16586962.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_12551_18384045.1207757117423 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Wed, Apr 9, 2008 at 5:17 PM, ar92 wrote: > > Hi. I'm evaluating tools to add dependency management to an existing > project > with complex ant scripts. Ivy is the front-runner, but I've had a few > problems. I thought I'd start with the install task. > > I'm using 2.0.0-beta 2 with ant 1.7.0. > > As a simple test, I have tried several variations on install calls and > have > not been satisfied with any of the results. > > For example, here's my target with 3 : > > > overwrite="true" transitive="true" organisation="log4j" module="log4j" > revision="1.2.15" /> > overwrite="true" transitive="true" organisation="org/apache/ant" > module="ant" revision="*" /> > overwrite="true" transitive="true" organisation="org/*" module="*" > revision="*" /> > > > I'll paste the resolvers config below, but first the results: > The log4j jar is successfully retrieved, but not the dependencies from > its > POM. > The second install task throws an exception. I first tried setting > "organisation" to "org.apache.ant", but Ivy failed to find it in the > iBiblio > path. So I changed it to use slashes instead of dots, and the lib was > found, > but with the following results: > > [ivy:install] ERROR: libraries2: bad organisation found in > http://repo1.maven > .org/maven2/org/apache/ant/ant/1.7.0/ant-1.7.0.pom: > expected='org/apache/ant' fo > und='org.apache.ant' > [ivy:install] java.text.ParseException: inconsistent module descriptor > file > foun > d in 'http://repo1.maven.org/maven2/org/apache/ant/ant/1.7.0/ant-1.7.0.pom > ': > bad > organisation: expected='org/apache/ant' found='org.apache.ant'; > [ivy:install] at > org.apache.ivy.plugins.resolver.BasicResolver.checkDescriptor > Consistency(BasicResolver.java:504) > [ivy:install] at > org.apache.ivy.plugins.resolver.BasicResolver.getDependency(B > asicResolver.java:236) > [ivy:install] at > org.apache.ivy.plugins.resolver.IBiblioResolver.getDependency > (IBiblioResolver.java:291) > [ivy:install] at > org.apache.ivy.core.resolve.IvyNode.loadData(IvyNode.java:225 > ) > > It never got to the third tag. I was hoping to see what it would do and > how > long it would take. > > > So here are the resolvers: > > > > > pattern="${repository.dir}/[organisation]/[module]/[revision]/[artifact].[ext]" > /> > pattern="${repository.dir}/[module]-[revision].xml" /> > > usepoms="true" /> > > > I tried both usepoms=true and usepoms=false, with the same results. > (Aside: > I will probably change my ivy pattern for libraries3 to match the artifact > pattern, but I would not expect it to have caused these problems. I did > receive an ivy file for log4j in the filesystem, although it contained no > dependencies.) > > So did I miss something here, or is this a big bug? It was my > understanding > that m2compatible=true means that the resolver can handle the way Maven > breaks up the org into directories. For log4j, it's supposed to work. Did you clean your cache between your attempts? I've made a quick test, and it quite works: It attempts to install transitive dependencies, but some are missing (javax.mail is a dependency of log4j but is not available in maven repo). We have bad error reporting in this case (you need to use verbose mode to get details), but it works pretty well. For the second attempt, Ivy is not able to list the revisions of the module in a maven 2 repository yet, and thus do not install anything. This is somewhat related to IVY-503, but it deserves its own issue. Could you open one? For your third attempt, I'm not sure we'll be able to handle this, because we'd need to introduce some kind of recursion when looking for organization names. This would be nice (and is also required to fully fix IVY-503), but very time consuming once implemented. Xavier > > -- > View this message in context: > http://www.nabble.com/Issues-with-install-and-iBiblio-tp16586962p16586962.html > Sent from the ivy-user mailing list archive at Nabble.com. > > -- Xavier Hanin - Independent Java Consultant http://xhab.blogspot.com/ http://ant.apache.org/ivy/ http://www.xoocode.org/ ------=_Part_12551_18384045.1207757117423--