[ 
http://jira.codehaus.org/browse/MNG-4228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=182951#action_182951
 ] 

Jean-Marc Borer edited comment on MNG-4228 at 7/8/09 10:12 AM:
---------------------------------------------------------------

It seems we are using NTLMv1: artifactory 2.0.6 uses httpclient 3.x lib which 
implements NTLMv1. This works fine and authentication is successful. So not 
(yet) a NTLMv2 issue for me. 

Anyway maven 2.2.0 cannot access internet because of Authorization failed: Not 
authorized by proxy. 

I have used the patched lib provided by Konstantin at 
http://issues.apache.org/jira/browse/HTTPCLIENT-579. You can downloaded it at 
http://issues.apache.org/jira/secure/attachment/12410908/NTLMV21.RAR 

Then I have rewritten his example see my attached file. Simply drop it to the 
example dir build and run. 

Edit:
Steps to run the example:
1) go to src directory and typ:
$ant
2) go to examples dir
3) edit run.bat and put quotes around the value of -Djavax.net.ssl.trustStore 
if it contains spaces otherwise you will get an error
4) edit the java file and put your information (proxy address, login password 
etc)
5) to compile type
$ ant
6) execute run.bat

Marco could you try the example to see if this works for you?

      was (Author: jmborer):
    It seems we are using NTLMv1: artifactory 2.0.6 uses httpclient 3.x lib 
which implements NTLMv1. This works fine and authentication is successful. So 
not (yet) a NTLMv2 issue for me. 

Anyway maven 2.2.0 cannot access internet because of Authorization failed: Not 
authorized by proxy. 

I have used the patched lib provided by Konstantin at 
http://issues.apache.org/jira/browse/HTTPCLIENT-579. You can downloaded it at 
http://issues.apache.org/jira/secure/attachment/12410908/NTLMV21.RAR 

Then I have rewritten his example see my attached file. Simply drop it to the 
example dir build and run. 

Edit:
Steps to run the example:
1) go to src directory and typ:
$ant
2) go to examples dir
3) edit run.bat and put quotes around the %JAVA_HOME% if it contains spaces
4) edit the java file and put your information (proxy address, login password 
etc)
5) to compile type
$ ant
6) execute run.bat

Marco could you try the example to see if this works for you?
  
> Authorization failed: Not authorized by proxy.
> ----------------------------------------------
>
>                 Key: MNG-4228
>                 URL: http://jira.codehaus.org/browse/MNG-4228
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Artifacts and Repositories, Settings
>    Affects Versions: 2.2.0
>         Environment: Windows XP, java version "1.6.0_04"
>            Reporter: Marco Noto
>            Priority: Blocker
>             Fix For: 2.2.1
>
>         Attachments: NTLMV21.RAR, TestNTLMAuth.java
>
>
> I can not access any external repository using the version 2.2.0. If I go 
> back to 2.1.0 everything works properly. 
> For example:
> mvn -U eclipse:eclipse
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'eclipse'.
> [INFO] org.apache.maven.plugins: checking for updates from central
> [WARNING] repository metadata for: 'org.apache.maven.plugins' could not be 
> retrieved from repository: central due
>  to an error: Authorization failed: Not authorized by proxy.
> [INFO] Repository 'central' will be blacklisted

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to