Return-Path: Delivered-To: apmail-ant-ivy-user-archive@www.apache.org Received: (qmail 50075 invoked from network); 9 Dec 2010 16:30:13 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Dec 2010 16:30:13 -0000 Received: (qmail 97115 invoked by uid 500); 9 Dec 2010 16:30:13 -0000 Delivered-To: apmail-ant-ivy-user-archive@ant.apache.org Received: (qmail 96756 invoked by uid 500); 9 Dec 2010 16:30:11 -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 95977 invoked by uid 99); 9 Dec 2010 16:30:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Dec 2010 16:30:10 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mandie.smith@gmail.com designates 209.85.161.169 as permitted sender) Received: from [209.85.161.169] (HELO mail-gx0-f169.google.com) (209.85.161.169) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Dec 2010 16:30:02 +0000 Received: by gxk5 with SMTP id 5so1572579gxk.14 for ; Thu, 09 Dec 2010 08:29:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=oQ7o9hiPDCTLsdCG1anebAISDUEkckDyu+PXNwJiG4M=; b=IwShw8Ry5pR3/+NijGY2ktGY707O3P3o0pOC7fVSD44n+/yekZcM7ClICmhFVPFHpM M1nNajK2WzkoYI1n6Sg4KnWoP2I54UZ5AIEPOMtG86nQXuU5XYIFxPCmvPn3qJ60aAlU vXe6zeNxEzxkK1Kzo+aOtr9jLoQeMsCi9P35A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=Rimi2mZrxKhJ6ctdA5FcHFA/zQSr5/Rzlfgjc+AErNhPsvi3MduIqV2vCl0k4Xmpu8 jN3DkD5dThtWTOCCaa+LUB+zdqk4bxTTTk9CUWjJ3ABl2kNroz4Yp0quiLZGsCgY9Xty mViJmxOSLc07LD+kn0LRA0uBgIveVQpC+6Jrk= MIME-Version: 1.0 Received: by 10.91.92.19 with SMTP id u19mr5765479agl.111.1291912180991; Thu, 09 Dec 2010 08:29:40 -0800 (PST) Sender: mandie.smith@gmail.com Received: by 10.90.157.19 with HTTP; Thu, 9 Dec 2010 08:29:40 -0800 (PST) Date: Thu, 9 Dec 2010 11:29:40 -0500 X-Google-Sender-Auth: oCSF79V3hfGwOuDqud4VtauXsyo Message-ID: Subject: Publishing multiple artifacts to a FileSystem repository and retrieving just one. From: Mandie Smith To: ivy-user@ant.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org I have a project that is publishing multiple artifacts to a local FileSystem repository. Several of these artifacts are tar.gz and I'm unable to retrieve them later. It seems that the resolve either expects there to be an ivy.xml in each directory for each artifact, or it defaults to only looking for a .jar file. Any ideas on what I'm missing that would allow a resolve of a tar.gz from the local FileSystem? I appreciate any help. Thanks, Mandie Here's a sample ivy.xml: Here is the output of the publish: :: loading settings :: file = /home/ivytest/TestProject/target/build/headers/ivypublisher.xml :: delivering :: myorg#YourModule;4.9.0.23 :: 4.9.0.23 :: release :: Thu Dec 09 11:19:45 EST 2010 delivering ivy file to /home/ivytest/TestProject/target/lib/ivy.xml :: publishing :: myorg#YourModule published YourModule to /home/ivytest/.ivy2/local/myorg/YourModule/4.9.0.23/YourModule-4.9.0.23.pom published art1 to /home/ivytest/.ivy2/local/myorg/art1/4.9.0.23/art1-4.9.0.23.pom published art1 to /home/ivytest/.ivy2/local/myorg/art1/4.9.0.23/art1-4.9.0.23.jar published art2 to /home/ivytest/.ivy2/local/myorg/art2/4.9.0.23/art2-4.9.0.23.tar.gz published art2 to /home/ivytest/.ivy2/local/myorg/art2/4.9.0.23/art2-4.9.0.23.pom published ivy to /home/ivytest/.ivy2/local/myorg/YourModule/4.9.0.23/ivy.xml Here is the output of the resolve on the art1 artifact, which is a jar: [ivy:resolve] main: Checking cache for: dependency: myorg#art1;4.9.0.+ {internal=[default]} [ivy:resolve] no cached resolved revision for myorg#art1;4.9.0.+ [ivy:resolve] don't use cache for myorg#art1;4.9.0.+: checkModified=true [ivy:resolve] tried /home/ivytest/.ivy2/local/myorg/art1/[revision]/ivy.xml [ivy:resolve] tried /home/ivytest/.ivy2/local/myorg/art1/[revision]/art1-[revision].jar [ivy:resolve] local do not support transaction. ivy pattern and artifact pattern do not use the same directory for revision [ivy:resolve] local: no ivy file found for myorg#art1;4.9.0.+: using default data [ivy:resolve] [4.9.0.23] myorg#art1 [ivy:resolve] found myorg#art1;4.9.0.23 in local [ivy:resolve] [4.9.0.23] myorg#art1;4.9.0.+ Here is the resolve for art2 which is a tar.gz: [ivy:resolve] == resolving dependencies myorg#YourModule1;1.0.20101209112153->myorg#art2;4.9.0.+ [internal->default] [ivy:resolve] main: Checking cache for: dependency: myorg#art2;4.9.0.+ {internal=[default]} [ivy:resolve] no cached resolved revision for myorg#art2;4.9.0.+ [ivy:resolve] don't use cache for myorg#art2;4.9.0.+: checkModified=true [ivy:resolve] tried /home/ivytest/.ivy2/local/myorg/art2/[revision]/ivy.xml [ivy:resolve] tried /home/ivytest/.ivy2/local/myorg/art2/[revision]/art2-[revision].jar [ivy:resolve] local: no ivy file nor artifact found for myorg#art2;4.9.0.+ The only place the ivy.xml exists is in the parent directory, yet the jar resolves fine, but not the tar.gz. ~/.ivy2/local> find . . ./myorg ./myorg/art1 ./myorg/art1/4.9.0.23 ./myorg/art1/4.9.0.23/art1-4.9.0.23.pom.md5 ./myorg/art1/4.9.0.23/art1-4.9.0.23.jar ./myorg/art1/4.9.0.23/art1-4.9.0.23.pom ./myorg/art1/4.9.0.23/art1-4.9.0.23.jar.md5 ./myorg/art1/4.9.0.23/art1-4.9.0.23.pom.sha1 ./myorg/art1/4.9.0.23/art1-4.9.0.23.jar.sha1 ./myorg/YourModule ./myorg/YourModule/4.9.0.23 ./myorg/YourModule/4.9.0.23/YourModule-4.9.0.23.pom.sha1 ./myorg/YourModule/4.9.0.23/ivy.xml.sha1 ./myorg/YourModule/4.9.0.23/YourModule-4.9.0.23.pom.md5 ./myorg/YourModule/4.9.0.23/ivy.xml.md5 ./myorg/YourModule/4.9.0.23/ivy.xml ./myorg/YourModule/4.9.0.23/YourModule-4.9.0.23.pom ./myorg/art2 ./myorg/art2/4.9.0.23 ./myorg/art2/4.9.0.23/art2-4.9.0.23.pom.md5 ./myorg/art2/4.9.0.23/art2-4.9.0.23.tar.gz ./myorg/art2/4.9.0.23/art2-4.9.0.23.pom.sha1 ./myorg/art2/4.9.0.23/art2-4.9.0.23.pom ./myorg/art2/4.9.0.23/art2-4.9.0.23.tar.gz.md5 ./myorg/art2/4.9.0.23/art2-4.9.0.23.tar.gz.sha1 The dependencies appear as follows: Publish definition: ivy.default.ivy.pattern [organization]/[module]/[revision]/ivy.xml ivy.default.artifact.pattern [organization]/[artifact]/[revision]/[artifact]-[revision].[ext] ivy.default.ivy.user.dir ${user.home}/.ivy2 ivy.local.default.root ${ivy.default.ivy.user.dir}/local Resolve definition: ivy.repository.releases releases ivy.repository.thirdparty internal ivy.repository.snapshots snapshots ivy.default.ivy.user.dir ${user.home}/.ivy2 ivy.local.default.root ${ivy.default.ivy.user.dir}/local ivy.default.ivy.pattern [organization]/[module]/[revision]/ivy.xml ivy.default.artifact.pattern [organization]/[artifact]/[revision]/[artifact]-[revision].[ext]