[
https://issues.apache.org/jira/browse/IVY-938?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12727468#action_12727468
]
Thomas Laun commented on IVY-938:
---------------------------------
I also ran into the problem that the cache is not updated. To reproduce the
error, I have created a very simple application (see CacheUpdateTest2.zip). It
contains of two projects name _Application_ and _Library_. When _Library_ is
build, it will publish it's artifacts to a local repository. _Application_ will
use the local cache to retrieve it's dependency to _Library_.
To reproduce the error, do the following:
* Compile _Library_
* Compile _Application_
* Wait some time so that the time stamps on the file will differ.
* Compile _Library_ again. This will update the artifacts in the repository.
* Compile _Application_ again. In theory, the cache should be updated with the
new version of library. But when you compare the time stamps, you will see that
the cache and _Application_ still use the old version.
The only workaround I found so far was to delete the cache. Everything else I
tried (setting changinging="true", defining a changing pattern, etc.) did not
work out.
> 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, 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.