Return-Path: Delivered-To: apmail-ant-ivy-user-archive@www.apache.org Received: (qmail 38527 invoked from network); 30 Apr 2009 10:07:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Apr 2009 10:07:09 -0000 Received: (qmail 65896 invoked by uid 500); 30 Apr 2009 10:07:08 -0000 Delivered-To: apmail-ant-ivy-user-archive@ant.apache.org Received: (qmail 65843 invoked by uid 500); 30 Apr 2009 10:07:08 -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 Delivered-To: moderator for ivy-user@ant.apache.org Received: (qmail 29101 invoked by uid 99); 30 Apr 2009 06:22:19 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Message-ID: <49F9426F.1020105@babel.homelinux.net> Date: Thu, 30 Apr 2009 16:17:19 +1000 From: Nik Trevallyn-Jones User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: ivy-user@ant.apache.org Subject: Re: problems publishing local jar References: <49F69C21.9050800@babel.homelinux.net> <49F70251.5080809@masergy.com> In-Reply-To: <49F70251.5080809@masergy.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Kirby Files wrote: > Nik wrote on 04/28/2009 02:03 AM: >> I have a number of external JAR files that my project relies on. These >> jars are not in any Ivy repositories that I am aware of - I just >> download them. >> >> I'm trying to publish/install them into my local Ivy repository, and I'm >> getting errors. >> >> My understanding is that generates the repo metadata for >> an artifact. Yet I keep getting errors telling me that Ivy can't find >> the metadata in my cache, or in a repository. > > I use ivy:install for this purpose, where the from resolver is a local > filesystem with a simple [artifact]-[revision].[type] pattern, and the > to resolver is an SFTP or NFS-based resolver: > > module="${module}" revision="${rev}" type="jar" > from="${localjar.resolver}" to="${to.resolver}" /> For anyone else following this thread, I've also just discovered the package resolver. If you are looking for a way to replicate a build environment reliably without having to ship these downloaded jars yourself, then the package resolver looks like a nice solution. I'm currently setting all this up for a CI environment, so installing previously downloaded jars into the repo as per Kirby's response seems the most reliable solution for me. :o) But I am also looking to add an Ivy file to an Open-Source project I contribute to, and the package resolver looks like the better solution for that. Cheers! Nik