From ivy-user-return-1776-apmail-incubator-ivy-user-archive=incubator.apache.org@incubator.apache.org Thu Oct 11 13:54:08 2007 Return-Path: Delivered-To: apmail-incubator-ivy-user-archive@locus.apache.org Received: (qmail 58197 invoked from network); 11 Oct 2007 13:54:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Oct 2007 13:54:08 -0000 Received: (qmail 98758 invoked by uid 500); 11 Oct 2007 13:53:55 -0000 Delivered-To: apmail-incubator-ivy-user-archive@incubator.apache.org Received: (qmail 98606 invoked by uid 500); 11 Oct 2007 13:53:55 -0000 Mailing-List: contact ivy-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ivy-user@incubator.apache.org Delivered-To: mailing list ivy-user@incubator.apache.org Received: (qmail 98597 invoked by uid 99); 11 Oct 2007 13:53:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Oct 2007 06:53:55 -0700 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [64.18.0.143] (HELO exprod5og102.obsmtp.com) (64.18.0.143) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 11 Oct 2007 13:53:57 +0000 Received: from source ([69.48.200.224]) by exprod5ob102.postini.com ([64.18.4.12]) with SMTP; Thu, 11 Oct 2007 06:51:14 PDT Received: (qmail 24356 invoked by uid 509); 11 Oct 2007 08:51:14 -0500 Received: from 192.169.9.32 by sgp-ns-01.pointserve.com (envelope-from , uid 507) with qmail-scanner-1.25-st-qms (clamdscan: 0.87/3572. spamassassin: 3.1.9. perlscan: 1.25-st-qms. Clear:RC:1(192.169.9.32):. Processed in 0.070968 secs); 11 Oct 2007 13:51:14 -0000 X-Antivirus-MYDOMAIN-Mail-From: rloehr@pointserve.com via sgp-ns-01.pointserve.com X-Antivirus-MYDOMAIN: 1.25-st-qms (Clear:RC:1(192.169.9.32):. Processed in 0.070968 secs Process 24349) Received: from unknown (HELO PTSCORP-EXCH.pointserve.com) (192.169.9.32) by sgp-ns-01.pointserve.com with SMTP; 11 Oct 2007 08:51:14 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: setting up snapshots with ivy, not picking up latest snapshot Date: Thu, 11 Oct 2007 08:50:15 -0500 Message-ID: <43C7278FD7C46E42A193246BC2FEDA5C1B09B0@PTSCORP-EXCH.pointserve.com> In-Reply-To: <43C7278FD7C46E42A193246BC2FEDA5C1B093F@PTSCORP-EXCH.pointserve.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: setting up snapshots with ivy, not picking up latest snapshot Thread-Index: AcgLaR6DaFdf4cOQQX+r5cdHr+e95AAACMdgACjvPVA= From: "Loehr, Ruel" To: X-Virus-Checked: Checked by ClamAV on apache.org For future archival reference: In order to setup snapshots in ivy I first publish my artifact when building with cruisecontrol with a version in the format MAJOR.MINOR.REVISION-SNAPSHOT. Next, in my ivyconf.xml, I had to change the fileresolver so that it would recognize which versions to always try and update. =20 =20 These actions turned on snapshots for me. -----Original Message----- From: Loehr, Ruel [mailto:rloehr@pointserve.com]=20 Sent: Wednesday, October 10, 2007 1:14 PM To: ivy-user@incubator.apache.org Subject: RE: setting up snapshots with ivy, not picking up latest snapshot Thanks, I figured it was doable, just didn't know how and couldn't come up with the right search terms to feed nabble. I'll look into this and write up an email for the list so others can benefit. -----Original Message----- From: Xavier Hanin [mailto:xavier.hanin@gmail.com]=20 Sent: Wednesday, October 10, 2007 1:07 PM To: ivy-user@incubator.apache.org Subject: Re: setting up snapshots with ivy, not picking up latest snapshot Here is the link to the thread I was talking about (the search may not give the same results all the time): http://mail-archives.apache.org/mod_mbox/incubator-ivy-user/200710.mbox/ %3c6.2.5.6.2.20071006135107.02cfcc98@bea.com%3e Xavier On 10/10/07, Xavier Hanin wrote: > > You must declare your dependency as changing. Have a look at the result of > this search: > > http://incubator.apache.org/ivy/search.html?cx=3D014292259695392975429%3A= 5 y6qypnrni8&cof=3DFORID%3A11&q=3Dchanging+pattern&sa=3DSearch#1010 > > The first mail archive thread references a recent discussion about this > which should help. > > Xavier > > On 10/9/07, Loehr, Ruel wrote: > > > > I'm trying to setup a snapshot system with ivy. My nightly build > > correctly publishes a jar with 1.0.0-SNAPSHOT version to my repository. > > > > > > > > My build however, is not picking up the new snapshots and downloading > > the new version. > > > > > > > > I'm calling : > > > > > > > > 1) ivy-setup (which just defines the ant tasks) > > > > 2) ivy-configure (shown below) > > > > 3) ivy-resolve > > > > 4) ivy-retrieve > > > > > > > > > > > > What is the expected behavior of resolve when determing when to download > > a new version of a version? When md5's change? When the timestamp > > changes? > > > > > > > > > > > > > > > > > > > > setup ivy > > configuration"> > > > > > > > > > > > > > > > > > > > > > > > > retreive dependencies > > with ivy"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > Ivyconf properties looks like this > > > > > > > > ivy.conf.dir=3D${basedir}/config/ivy > > > > ivy.conf.file=3D${ivy.conf.dir}/ivyconf.xml > > > > ivy.ivyrep.default.ivy.root=3Dhttp://pts-bldwin-01/repository > > > > ivy.retrieve.pattern =3D ${basedir}/libs/[conf]/[artifact].[ext] > > > > > > > > Ivy conf xml looks like this: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > pattern=3D"\\pts-bldwin-01\repository\[organization]\[module]\[revision]\= i > > vy-[revision].xml" /> > > > > > pattern=3D"\\pts-bldwin-01\repository\[organization]\[module]\[revision]\= [ > > > > artifact]-[revision].[ext]" /> > > > > > pattern=3D"\\pts-bldwin-01\repository\[organization]\[module]\[revision]\= [ > > artifact].[ext]" /> > > > > > > > > > > > > > pattern=3D"http://pts-bldwin-01/repository/[organization]/[module]/[revis= i > > > > > > on]/ivy-[revision].xml" /> > > > > > pattern=3D"http://pts-bldwin-01/repository/[organization]/[module]/[revis= i > > > > > > on]/[artifact]-[revision].[ext]" /> > > > > > pattern=3D"http://pts-bldwin-01/repository/[organization]/[module]/[revis= i > > > > > > on]/[artifact].[ext]" /> > > > > > > > > > > > > > > > > > > > > > resolver=3D"default" /> > > > > > > > > > > > > > > > > Ruel Loehr > > > > Configuration Management > > > > > > > > Pointserve, Inc. > > > > 110 Wild Basin Road > > > > Suite 300 > > > > Austin, Texas 78746 > > > > O: 512.617.5314 > > > > F: 512.617.0466 > > > > > > > > > > > -- > Xavier Hanin - Independent Java Consultant > http://xhab.blogspot.com/ > http://incubator.apache.org/ivy/ > http://www.xoocode.org/ --=20 Xavier Hanin - Independent Java Consultant http://xhab.blogspot.com/ http://incubator.apache.org/ivy/ http://www.xoocode.org/