[
https://issues.apache.org/jira/browse/IVY-938?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12739095#action_12739095
]
Paul Andrews commented on IVY-938:
----------------------------------
The file is being served by hudson directly. The configuration I use is as
follows:
<ivysettings>
<settings defaultResolver="chained"/>
<latest-strategies>
<latest-time name="time"/>
</latest-strategies>
<resolvers>
<chain name="chained" returnFirst="true">
<!-- For getting stuff from the Maven 2 repo on
gendev-lnx -->
<ibiblio
name="internal"
m2compatible="true"
usepoms="false"
root="http://gendev-lnx:9090/artifactory/repo"/>
<!-- For getting stuff from the hudson repo on
gendev-lnx -->
<url name="hudson_sper" changingMatcher="regexp"
changingPattern=".*SNAPSHOT.*" checkmodified="true">
<artifact
pattern="http://localhost:9090/hudson/job/SPER/lastSuccessfulBuild/artifact/sper/java/dist/[artifact].[ext]"/>
</url>
</chain>
</resolvers>
</ivysettings>
The snapshot artifact is not in the "internal" repository, it is in
"hudson_sper". I have traced the TCP traffic to both repositories and Ivy only
issues one request: an HTTP HEAD request for the artifact itself. At no time
does it attempt to retrieve an ivy file. The server returns a modification date
later than the modification date of any copy of the artifact on my local
machine - either in the ivy cache or in the location that the artifact is
copied to by the resolver.
I don't see much point 'publishing' an ivy file to hudson_sper, since Ivy makes
no attempt to access one anyway.
> 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.