Hi,

Maven clients access a repository through a direct URL constructed by the
dependency groupId, artifactId and version.
So when you define a dependency, maven will try to fetch it from:
http://artifactoryserver:port/local-repository/groupId/artifactId/...
On the way maven will also try to grab the maven-metadata.xml but still the
URL is direct, there is no guessing there.

I think you are confusing a bit with virtual
repository<http://wiki.jfrog.org/confluence/display/RTF/Virtual+Repositories>,
we always recommend as a best practice to provide your clients with a
single point virtual repository to resolve from.
In this case, the order inside this virtual repository is locals, caches,
remotes. The order between same try of repositories is determined by the UI
(Admin -> Repositories, how they are ordered there).

Shay.

On Mon, Nov 12, 2012 at 9:36 PM, jmendez <[email protected]>wrote:

> If Maven users access a local repository by going to
> http://artifactoryserver:port/simple/local-repository, what is the exact
> order for artifact resolution?
>
> Users are able to download artifacts which are not in that local repository
> (example would be Maven artifacts).
>
> I know that if they access http://artifactoryserver:port/repo the general
> repository would be used, which goes in order from local to external
> repositories searching for an artifact (as specified in the configuration).
>
> Is still not clear to me, what would happen if users access a local
> repository URL directly. I would expect it to limit the scope to that
> repository.
>
> Could this be something the Maven client is doing?
>
> I have read the documentation on the  Users Guide
> <http://wiki.jfrog.org/confluence/display/RTF/Understanding+Repositories>
> and searched on this forum, but couldn't find any references about this.
>
> Thanks in advance.
>
> Javier
>
>
>
> --
> View this message in context:
> http://forums.jfrog.org/What-is-the-artifact-resolution-order-of-a-local-repository-tp7578390.html
> Sent from the Artifactory - Users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Monitor your physical, virtual and cloud infrastructure from a single
> web console. Get in-depth insight into apps, servers, databases, vmware,
> SAP, cloud infrastructure, etc. Download 30-day Free Trial.
> Pricing starts from $795 for 25 servers or applications!
> http://p.sf.net/sfu/zoho_dev2dev_nov
> _______________________________________________
> Artifactory-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to