|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
An API to search public repositoriesHi,
I was just wondering how a lookup between all public repositories happens? Is there an API each repository responds to? Or one (in our case, Artifactory) just attempts to download and see if it fails or not ? |
|
|
Re: An API to search public repositoriesDoes it have anything to do with Maven Wagon ?
|
|
|
Re: An API to search public repositoriesHi Evgeny,
When Artifactory contacts a remote repository it first sends a HEAD request to see whether the artifact exists and if it has changed (changes are only checkedĀ for snapshots - the maven metadata is queried). Even though there are more powerful search APIs provided by repo managers, including Artifactory itself, this is the fastest direct query form, which is standard and works with 'dumb' HTTP repositories as well (in fact, HTTP also offers conditional-GET in a single request, but repo1 does not support it, so we use a HEAD then GET). Other than that, each remore repository has an expiring cache for snapshots, a cache for failed retrievals (network errors etc.) and a cache for non-found artifacts (all configurable from the remote repo advanced configuration panel). The actual resolution order between repositories is explained here: http://wiki.jfrog.org/confluence/display/RTF/Understanding+Repositories (the last section called "Resolution Order"). HTH, Yoav On Thu, Jul 2, 2009 at 10:34 AM, Evgeny Goldin <evgenyg@...> wrote:
------------------------------------------------------------------------------ _______________________________________________ Artifactory-users mailing list Artifactory-users@... https://lists.sourceforge.net/lists/listinfo/artifactory-users |
|
|
Re: An API to search public repositoriesGreat, Yoav, thanks a lot!
|
|
|
Re: An API to search public repositorieshttp://wiki.jfrog.org/confluence/display/RTF/Understanding+Repositories:
The search order is agnostic to the order in which sub-repositories are listed inside a virtual repository. But it's not agnostic to the order remote repositories are listed, right ? |
|
|
Re: An API to search public repositoriesRight. Updated the doc to reflect that.
Thanks! On Sun, Jul 5, 2009 at 10:58 AM, Evgeny Goldin <evgenyg@...> wrote:
------------------------------------------------------------------------------ _______________________________________________ Artifactory-users mailing list Artifactory-users@... https://lists.sourceforge.net/lists/listinfo/artifactory-users |
|
|
Re: An API to search public repositoriesP.S. This is not true just for remotes, but also applies to the internal order of locals an other virtual repos within a virtual repo - the wiki doc explains this in more detail.
On Sun, Jul 5, 2009 at 9:53 PM, Yoav Landman <ylandman@...> wrote:
------------------------------------------------------------------------------ _______________________________________________ Artifactory-users mailing list Artifactory-users@... https://lists.sourceforge.net/lists/listinfo/artifactory-users |
| Free embeddable forum powered by Nabble | Forum Help |