Hi,

 

I am using gradle+ivy to resolve my dependencies against artifactory and
I am having trouble getting artifacts to resolve using version matchers
(i.e. latest.integration or 2.1.0+) when the repository I am resolving
against requires authentication (anonymous access is not allowed).   If
I enable anonymous read access, version matchers work fine and I can
resolve fine if I use a specific version.  I see the same problems when
I use ant+ivy FWIW.

 

Here is how I define my repositories (I do use an actual username and
password hash in my actual file...):

 

        repositories {

 
org.apache.ivy.util.url.CredentialsStore.INSTANCE.addCredentials("Artifa
ctory Realm", "$artifactoryDomain", "username", "password");

            add(new org.apache.ivy.plugins.resolver.URLResolver()) {

                name = 'devRepository'

                changingPattern = '.*SNAPSHOT'

                checksums = "sha1,md5"

                addArtifactPattern
"$artifactoryURL/dev-artifacts/$artifactPattern"

                addIvyPattern
"$artifactoryURL/dev-artifacts/$ivyPattern"

            }

       }

 

I am trying to figure out if this is a problem with Ivy not sending
credentials when it is trying to find the correct version or if this is
artifactory dis-allowing directory listings for a repo that requires
authentication.

 

Any help would be appreciated.

 

Sean Waters

 

Confidentiality Notice! This electronic transmission and any attached documents 
or other writings are confidential and are for the sole use of the intended 
recipient(s) identified above. This message may contain information that is 
privileged, confidential or otherwise protected from disclosure under 
applicable law. If the receiver of this information is not the intended 
recipient, or the employee, or agent responsible for delivering the information 
to the intended recipient, you are hereby notified that any use, reading, 
dissemination, distribution, copying or storage of this information is strictly 
prohibited. If you have received this information in error, please notify the 
sender by return email and delete the electronic transmission, including all 
attachments from your system.
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to