Thanks.
In this case, the Maven client (in settings.xml) have the local repository URL
configured.
Example:
<url>http://artifactoryserver:port/artifactory/simple/local-repository/</url>
I need it to be the local repository, so people can deploy things into it (as I
understand you cannot deploy to virtual repositories).
What confuses me, is that this local repository only contains artifacts from
the group ID “com.company”. The Maven client tries to access public artifacts
(example “org.apache”) and they are served through my local repository URL.
I’m positive that the Maven client settings don’t have any mirrors configured
or anything else.
So my question is, how is that possible? What order is Artifactory using to
check for other (public) repositories?
Javier Mendez
Developer
T +1 619 564 4351 ext 2123
Skype: luis.javier.06
SEARCH TECHNOLOGIES
THE EXPERT IN THE SEARCH SPACE
www.searchtechnologies.com<http://www.searchtechnologies.com/>
From: shayy [via Artifactory] [mailto:[email protected]]
Sent: Tuesday, November 13, 2012 1:51 AM
To: Javier Mendez Vasquez
Subject: Re: What is the artifact resolution order of a local repository?
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 <[hidden
email]</user/SendEmail.jtp?type=node&node=7578392&i=0>> 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
[hidden email]</user/SendEmail.jtp?type=node&node=7578392&i=1>
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
[hidden email]</user/SendEmail.jtp?type=node&node=7578392&i=2>
https://lists.sourceforge.net/lists/listinfo/artifactory-users
________________________________
If you reply to this email, your message will be added to the discussion below:
http://forums.jfrog.org/What-is-the-artifact-resolution-order-of-a-local-repository-tp7578390p7578392.html
To unsubscribe from What is the artifact resolution order of a local
repository?, click
here<http://forums.jfrog.org/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=7578390&code=am1lbmRlekBzZWFyY2h0ZWNobm9sb2dpZXMuY29tfDc1NzgzOTB8NTU4NTg3MTcy>.
NAML<http://forums.jfrog.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
Click
here<https://www.mailcontrol.com/sr/SHMS!DPtaU7GX2PQPOmvUtXHXnVjuGgHqYD+kbxttQh5YbRAr38syGKeU6xKRBWqPI2785egWjX1VsBVsOva5A==>
to report this email as spam.
________________________________
No virus found in this message.
Checked by AVG - www.avg.com<http://www.avg.com>
Version: 2012.0.2221 / Virus Database: 2441/5390 - Release Date: 11/12/12
--
View this message in context:
http://forums.jfrog.org/What-is-the-artifact-resolution-order-of-a-local-repository-tp7578390p7578393.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