You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Brett Porter <br...@apache.org> on 2009/09/04 07:10:25 UTC

Re: maven 2.2.1 does not work with basic-auth

What about without the <![CDATA[ ?

Did it work in previous versions of Maven?

Have you tried using the encryption settings now available?

On 26/08/2009, at 1:43 AM, Harsch, Timothy J. (ARC-SC)[PEROT SYSTEMS]  
wrote:

> 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
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org