I am having difficulty connecting to Artifactory repo that requires basic-auth. 
 If the basic-auth is removed, mvn happily builds.  But if in place it can't 
fetch any resources.



I believe I have my settings correct, I have supplied them like so:



            <server>

                  <id>mirror1</id>

                  <username>admin</username>

                  <configuration>

                    <authenticationInfo>

                      <userName>tharsch</userName>

                      <password><![CDATA[someCr3pticPassword]]></password>

                    </authenticationInfo>

                  </configuration>

            </server>





On a whim I changed password to passWord. if I do it says "Unable to apply 
wagon configuration". Good, so if I don't see that then I have the tags 
correct. When correct, I see "[WARNING] Unable to get resource 'XXX' from 
repository artifactory (YYY/artifactory/repo): Authorization failed: Access 
denied to: XXX". At this point I think it must be a Maven bug.



I can take the URL supplied in the message paste it to my browser, supply my 
credentials and download just fine.



Any suggestions?



Thanks,

Tim



P.S. If you want more background info you can read my stackoverflow post at 
http://stackoverflow.com/questions/1280747/accessing-an-artifactory-maven-repo-that-requires-basic-auth

Reply via email to