Sorry, does work after cleaning cache! Did I overlooked something in the
docs? Testing shows that latest-attr. has to be in chain and in
subresolvers, using <resolver ref="... doesn't work at all with
latest-attr. 


On Thu, 2009-01-08 at 00:48 +0100, Konstantin Rekk wrote:
> Does not,  with:
> 
> <resolvers>
>               <!-- chain name="main" dual="true">
>                       <resolver ref="shared"/>
>                       <resolver ref="vzgpublic"/>
>               </chain -->
>               <chain name="vzgdev"  checkmodified="true" 
> latest="latest-time"> <!--
> latest="dev-revision" --> <!-- latest="latest-time" -->
>                       <!-- resolver ref="local" latest="latest-time"/-->
>                       <filesystem name="chlocal"  latest="latest-time">
>                               <ivy
> pattern="${ivy.local.default.root}/${ivy.local.default.ivy.pattern}" />
>                               <artifact
> pattern="${ivy.local.default.root}/${ivy.local.default.artifact.pattern}" />
>               </filesystem>
>               <filesystem name="chshared" latest="latest-time">
>                       <ivy
> pattern="${ivy.shared.default.root}/${ivy.shared.default.ivy.pattern}" />
>                       <artifact
> pattern="${ivy.shared.default.root}/${ivy.shared.default.artifact.pattern}" />
>               </filesystem>
>                       <!-- resolver ref="shared" latest="latest-time"/ -->
>                       <!-- resolver ref="vzgpublic" latest="latest-time"/ -->
>               </chain>
>       </resolvers>
>       <modules>
>               <module organisation="de.gbv" name="*" resolver="vzgdev"/>
>       </modules>
> 
> debug output from ant script:
> ------------------------------------------------------------------
> settings loaded (217ms)
>         default cache: /home/kostja/.ivy2/cache
>         default resolver: vzgpublic
>         default latest strategy: latest-revision
>         default conflict manager: latest-revision
>         circular dependency strategy: warn
>         validate: true
>         check up2date: true
>         -- 6 resolvers:
>         shared [file]
>                 cache: null
>                 m2compatible: false
>                 ivy patterns:
>                         
> /home/kostja/.ivy2/shared/[organisation]/[module]/[revision]/[type]s/[artifact].[ext]
>                 artifact patterns:
>                         
> /home/kostja/.ivy2/shared/[organisation]/[module]/[revision]/[type]s/[artifact].[ext]
>                 repository: shared
>         vzgpublic [url]
>                 cache: null
>                 m2compatible: false
>                 ivy patterns:
> 
> http://modules.gbv.de/public/modules/[organisation]/[module]/[revision]/ivy.xml
>                 artifact patterns:
> 
> http://modules.gbv.de/public/modules/[organisation]/[module]/[revision]/[type]s/[artifact]-[revision].[ext]
>                 repository: vzgpublic
>         chshared [file]
>                 cache: null
>                 m2compatible: false
>                 ivy patterns:
>                         
> /home/kostja/.ivy2/shared/[organisation]/[module]/[revision]/[type]s/[artifact].[ext]
>                 artifact patterns:
>                         
> /home/kostja/.ivy2/shared/[organisation]/[module]/[revision]/[type]s/[artifact].[ext]
>                 repository: chshared
>         vzgdev [chain] [chlocal, chshared]
>                 return first: false
>                 dual: false
>                 -> chlocal
>                 -> chshared
>         local [file]
>                 cache: null
>                 m2compatible: false
>                 ivy patterns:
>                         
> /home/kostja/.ivy2/local/[organisation]/[module]/[revision]/[type]s/[artifact].[ext]
>                 artifact patterns:
>                         
> /home/kostja/.ivy2/local/[organisation]/[module]/[revision]/[type]s/[artifact].[ext]
>                 repository: local
>         chlocal [file]
>                 cache: null
>                 m2compatible: false
>                 ivy patterns:
>                         
> /home/kostja/.ivy2/local/[organisation]/[module]/[revision]/[type]s/[artifact].[ext]
>                 artifact patterns:
>                         
> /home/kostja/.ivy2/local/[organisation]/[module]/[revision]/[type]s/[artifact].[ext]
>                 repository: chlocal
>         module settings:
>                 {module=*, organisation=de.gbv} (exactOrRegexp) ->
> resolver: vzgdev
> --------------------------------------------------------------------------
> 
> Any ideas? Thanks!
> 
> Konstantin
> 
> On Wed, 2009-01-07 at 12:11 -0800, Maarten Coene wrote:
> > Can you test if it works when you specify latest on each of the individual 
> > resolvers in the chain?
> > 
> > Maarten
> 
> 
-- 
Konstantin Rekk
VZG (GBV), Göttingen, Berlin
0176 2100 6000
030 29003511
skype: krekk1970 
[email protected]
http://www.gbv.de

Reply via email to