>
>When requesting the metadata from a virtual repository that consists of both 
>local and remote repositories, Artifactory should create and return a merged 
>view.
>A couple of reasons for the problem you face come to mind:
>    1. The remote repository cache contains metadata which is not up to date, 
>but 
>
>hasn't expired either: In this case you can "zap" it, so that Artifactory will 
>try to fetch the remote metadata upon the next request.
>    2. The metadata within the remote repository is not up to date with its 
> true 
>
>contents.

It doesn't look like it's a remote repo/caching problem. Here's what I'm seeing:

URL #1 - Using 
http://<artifactory-local-repo-url>/<path-to-artifact-root-dir>/maven-metadata.xml
 I see metadata for version 3.2.1, for example.

URL #2 - Using 
http://<artifactory-remote-repo-url>/<path-to-artifact-root-dir>/maven-metadata.xml
  I see metadata for version 3.3.1 and 3.3.0, for example. This matches what 
I'm 
seeing by hitting the actual remote repo as well, so it looks like the two are 
in synch.

URL #3 - Using 
http://<artifactory-virtual-repo-url>/<path-to-artifact-root-dir>/maven-metadata.xml
  I see metadata for version 3.2.1 (the same as in URL #1, above). This virtaul 
repo URL contains the local and remote repos listed above (URL #1 and #2).

Some other observations:

- If I manually remove the "local" version of maven-metadata.xml (from URL #1's 
path), then URL #3 provides the same metadata as URL #2, above. 


- If I redeploy the local version of the artifact[1], the local metadata file 
gets regenerated, and URL #3 returns the same thing as URL #1, again.

So, it looks like, the metadata from URL #3 is getting selected based on a 
local-then-remote basis instead of merging the two together and providing a 
unified view.

Bob

Notes:
- As an aside, I would have assumed the local metadata file would be 
regenerated 
(after deletion) upon its request, but it took an actual re-deployment to make 
that file appear again.

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to