ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Andrews (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (IVY-938) Fixed name snapshots are not updated even if they are marked as changing and the publication date is changed in repo
Date Tue, 14 Jul 2009 21:43:14 GMT

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

Paul Andrews edited comment on IVY-938 at 7/14/09 2:41 PM:
-----------------------------------------------------------

Same problem here (with 2.1.0-RC1). I have changing="true" on the dependency and changingPattern=".*SNAPSHOT.*"
checkmodified="true" on (in this case) a URL resolver called hudson_sper. Running ant -v I
see the following:

[ivy:resolve] == resolving dependencies com.ftid.sper#sper_svc_ejb;working@A55584->com.ftid.sper#sperDbServer;SNAPSHOT
[dist->default]
[ivy:resolve] chained: Checking cache for: dependency: com.ftid.sper#sperDbServer;SNAPSHOT
{dist=[default]}
[ivy:resolve] don't use cache for com.ftid.sper#sperDbServer;SNAPSHOT: changing=true
[ivy:resolve] don't use cache for com.ftid.sper#sperDbServer;SNAPSHOT: checkModified=true
[ivy:resolve] 		tried http://localhost:9090/hudson/job/SPER/lastSuccessfulBuild/artifact/sper/java/dist/sperDbServer.jar
[ivy:resolve] 	hudson_sper: no ivy file found for com.ftid.sper#sperDbServer;SNAPSHOT: using
default data
[ivy:resolve] 	found com.ftid.sper#sperDbServer;SNAPSHOT in hudson_sper

And later:

[ivy:resolve] 	[NOT REQUIRED] com.ftid.sper#sperDbServer;SNAPSHOT!sperDbServer.jar

Note that there is no Ivy file associated with the artifact - it is just an artifact created
by a Hudson build.

I traced the requests being sent to the server: Ivy is sending a HEAD request and getting
back a later modification date than the one that is in the cache, but it never issues the
GET.

      was (Author: mpandrews):
    Same problem here (with 2.1.0-RC1). I have changing="true" on the dependency and changingPattern=".*SNAPSHOT.*"
checkmodified="true" on (in this case) a URL resolver called hudson_sper. Running ant -v I
see the following:

[ivy:resolve] == resolving dependencies com.ftid.sper#sper_svc_ejb;working@A55584->com.ftid.sper#sperDbServer;SNAPSHOT
[dist->default]
[ivy:resolve] chained: Checking cache for: dependency: com.ftid.sper#sperDbServer;SNAPSHOT
{dist=[default]}
[ivy:resolve] don't use cache for com.ftid.sper#sperDbServer;SNAPSHOT: changing=true
[ivy:resolve] don't use cache for com.ftid.sper#sperDbServer;SNAPSHOT: changing=true
[ivy:resolve] CLIENT ERROR: Artifact metadata not found for 'com/ftid/sper/sperDbServer/SNAPSHOT/maven-metadata.xml'.
url=http://gendev-lnx:9090/artifactory/repo/com/ftid/sper/sperDbServer/SNAPSHOT/maven-metadata.xml
[ivy:resolve] 	maven-metadata not available: http://gendev-lnx:9090/artifactory/repo/com/ftid/sper/sperDbServer/SNAPSHOT/maven-metadata.xml
[ivy:resolve] 		tried http://gendev-lnx:9090/artifactory/repo/com/ftid/sper/sperDbServer/SNAPSHOT/sperDbServer-SNAPSHOT.jar
[ivy:resolve] CLIENT ERROR: Artifact not found: com/ftid/sper/sperDbServer/SNAPSHOT/sperDbServer-SNAPSHOT.jar
url=http://gendev-lnx:9090/artifactory/repo/com/ftid/sper/sperDbServer/SNAPSHOT/sperDbServer-SNAPSHOT.jar
[ivy:resolve] 	internal: no ivy file nor artifact found for com.ftid.sper#sperDbServer;SNAPSHOT
[ivy:resolve] don't use cache for com.ftid.sper#sperDbServer;SNAPSHOT: checkModified=true
[ivy:resolve] 		tried http://localhost:9090/hudson/job/SPER/lastSuccessfulBuild/artifact/sper/java/dist/sperDbServer.jar
[ivy:resolve] 	hudson_sper: no ivy file found for com.ftid.sper#sperDbServer;SNAPSHOT: using
default data
[ivy:resolve] 	found com.ftid.sper#sperDbServer;SNAPSHOT in hudson_sper

And later:

[ivy:resolve] 	[NOT REQUIRED] com.ftid.sper#sperDbServer;SNAPSHOT!sperDbServer.jar

Note that there is no Ivy file associated with the artifact - it is just an artifact created
by a Hudson build.

I traced the requests being sent to the server: Ivy is sending a HEAD request and getting
back a later modification date than the one that is in the cache, but it never issues the
GET.
  
> 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.


Mime
View raw message