[ 
https://issues.apache.org/jira/browse/IVY-938?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12800395#action_12800395
 ] 

Kay Kay commented on IVY-938:
-----------------------------

So - we are trying to fetch the latest snapshots from a m2 repository. The ivy 
settings file is given herewith. 

{code}
<ivysettings>
   <property name="repo.maven.org" value="http://repo1.maven.org/maven2/"; 
override="false"/>
  <property name="snapshot.apache.org" 
value="https://repository.apache.org/content/repositories/snapshots/"; 
override="false"/>
  <property name="maven2.pattern" 
value="[organisation]/[module]/[revision]/[module]-[revision]"/>
  <property name="maven2.pattern.ext" value="${maven2.pattern}.[ext]"/>
  
  <property name="maven2.pattern" 
value="[organisation]/[module]/[revision]/[module]-[revision]"/>
  <property name="maven2.pattern.ext" value="${maven2.pattern}.[ext]"/>
  
 <settings defaultResolver="default"/>
  <resolvers>
    <!--ibiblio resolvers-->
    <ibiblio name="maven2" root="${repo.maven.org}" m2compatible="true"/>
    <ibiblio name="apache-snapshot" root="${snapshot.apache.org}" 
m2compatible="true"
        checkmodified="true" changingPattern=".*SNAPSHOT"/>
 
    <chain name="default" dual="true">
      <resolver ref="maven2"/>
      <resolver ref="apache-snapshot" />
    </chain>
  </resolvers>

</ivysettings>
{code}

This would not retrieve the latest snapshots ( unless we explicitly clear the 
ivy cache  - ~/.ivy2/cache . I tried with the nightly build and the problem 
persists . Can you help here. The snapshot is public , btw. 

> Fixed name snapshots are not updated even if they are marked as changing and 
> the publication date is changed in repo
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: IVY-938
>                 URL: https://issues.apache.org/jira/browse/IVY-938
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core, Maven Compatibility
>    Affects Versions: 2.0-RC1
>            Reporter: Jyri Kytömäki
>         Attachments: CacheUpdateTest.zip, CacheUpdateTest2.zip, 
> ivysettings.xml
>
>
> Snapshot releases with static name like 1.2.3-SNAPSHOT are not updated into 
> the cache.
> Same problem is with ivy and maven remote repos.
> Here ivy example:
> Remote ivy repo contains in ivy xml:
> status="integration" publication="20081010104634"
> Cache contains (.xml):
> status="integration" publication="20081010095107"
> But  ivy_resolve does not update the cache. It prints this with verbose 
> output:
> [ivy-resolve] default: Checking cache for: dependency: 
> org#>module;1.2.3-SNAPSHOT {runtime=[runtime]}
> [ivy-resolve] don't use cache for org#>module;1.2.3-SNAPSHOT: changing=true
> [ivy-resolve] local: Checking cache for: dependency: 
> org#>module;1.2.3-SNAPSHOT{runtime=[runtime]}
> [ivy-resolve] local: module revision found in cache: 
> org#>module;1.2.3-SNAPSHOT
> [ivy-resolve]   found org#>module;1.2.3-SNAPSHOT in remote_ivy
> ...
> [ivy-resolve] :: downloading artifacts ::
> [ivy-resolve]   [NOT REQUIRED] org#>module;1.2.3-SNAPSHOT!module.jar

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to