ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Loehr, Ruel" <rlo...@pointserve.com>
Subject RE: setting up snapshots with ivy, not picking up latest snapshot
Date Wed, 10 Oct 2007 18:14:18 GMT
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] 
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 <xavier.hanin@gmail.com> 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=014292259695392975429%3A5
y6qypnrni8&cof=FORID%3A11&q=changing+pattern&sa=Search#1010
>
> The first mail archive thread references a recent discussion about
this
> which should help.
>
> Xavier
>
> On 10/9/07, Loehr, Ruel <rloehr@pointserve.com> 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?
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >     <target name="ivy-configure" description="--> setup ivy
> > configuration">
> >
> >         <ivy-configure file="${config}/ivy/ivyconf.xml"/>
> >
> >     </target>
> >
> >
> >
> >
> >
> >     <!-- =================================
> >
> >           target: resolve
> >
> >          ================================= -->
> >
> >     <target name="ivy-resolve" description="--> retreive
dependencies
> > with ivy">
> >
> >         <ivy-resolve/>
> >
> >         <ivy-retrieve sync="true"/>
> >
> >     </target>
> >
> >
> >
> >
> >
> >
> >
> > Ivyconf properties looks like this
> >
> >
> >
> > ivy.conf.dir=${basedir}/config/ivy
> >
> > ivy.conf.file=${ivy.conf.dir}/ivyconf.xml
> >
> > ivy.ivyrep.default.ivy.root=http://pts-bldwin-01/repository
> >
> > ivy.retrieve.pattern = ${basedir}/libs/[conf]/[artifact].[ext]
> >
> >
> >
> > Ivy conf xml looks like this:
> >
> >
> >
> > <ivyconf>
> >
> >         <properties file="${ivy.conf.dir}/ivyconf-file.properties"
/>
> >
> >         <conf defaultResolver="default" checkUpToDate="true" />
> >
> >
> >
> >         <resolvers m2compatible="true">
> >
> >            <chain name="default">
> >
> >            <filesystem name="internal" checkmodified="true">
> >
> >                         <ivy
> >
pattern="\\pts-bldwin-01\repository\[organization]\[module]\[revision]\i
> > vy-[revision].xml" />
> >
> >                                 <artifact
> >
pattern="\\pts-bldwin-01\repository\[organization]\[module]\[revision]\[
> >
> > artifact]-[revision].[ext]" />
> >
> >                         <artifact
> >
pattern="\\pts-bldwin-01\repository\[organization]\[module]\[revision]\[
> > artifact].[ext]" />
> >
> >            </filesystem>
> >
> >                <url name="internal-url">
> >
> >                    <ivy
> >
pattern="http://pts-bldwin-01/repository/[organization]/[module]/[revisi
> >
> >
<http://pts-bldwin-01/repository/%5Borganization%5D/%5Bmodule%5D/%5Brevi
si>
> > on]/ivy-[revision].xml" />
> >
> >                    <artifact
> >
pattern="http://pts-bldwin-01/repository/[organization]/[module]/[revisi
> >
> >
<http://pts-bldwin-01/repository/%5Borganization%5D/%5Bmodule%5D/%5Brevi
si>
> > on]/[artifact]-[revision].[ext]" />
> >
> >                    <artifact
> >
pattern="http://pts-bldwin-01/repository/[organization]/[module]/[revisi
> >
> >
<http://pts-bldwin-01/repository/%5Borganization%5D/%5Bmodule%5D/%5Brevi
si>
> > on]/[artifact].[ext]" />
> >
> >                </url>
> >
> >             </chain>
> >
> >         </resolvers>
> >
> >         <modules>
> >
> >                 <module organisation="jayasoft" name=".*"
> > resolver="default" />
> >
> >         </modules>
> >
> > </ivyconf>
> >
> >
> >
> > 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/




-- 
Xavier Hanin - Independent Java Consultant
http://xhab.blogspot.com/
http://incubator.apache.org/ivy/
http://www.xoocode.org/

Mime
View raw message