[ http://jira.codehaus.org/browse/MPPLUGIN-25?page=comments#action_39608 ] Barrie Treloar commented on MPPLUGIN-25: ----------------------------------------
Jamie McCrindle has correctly identified the problem. To fix it, go into your Maven cache: .maven\cache\maven-plugin-plugin-1.5.2 Open the plugin.jelly file and find the lines that include the ${maven.proxy...} bits. Append the following <j:arg type="java.lang.String" value="${maven.proxy.ntlm.host}" /> <j:arg type="java.lang.String" value="${maven.proxy.ntlm.domain}" /> Save the file and retry. It worked for me. > NTLM Proxy Problem > ------------------ > > Key: MPPLUGIN-25 > URL: http://jira.codehaus.org/browse/MPPLUGIN-25 > Project: maven-plugin-plugin > Type: Bug > Versions: 1.5 > Environment: Windows 2000, JSDK 1.3.1_06 and JSDK 1.4.2_02, Maven 1.0, Maven > Plugin Plugin 1.5.1 > Reporter: Jamie McCrindle > > > Using the following proxy configuration: > maven.proxy.host=myProxyHost > maven.proxy.port=myProxyPort > maven.proxy.username=myUserName > maven.proxy.password=myPassword > maven.proxy.ntlm.host=myNtlmHost > maven.proxy.ntlm.domain=myDomain > Downloading jars works just fine but when I try to download a plugin e.g: > maven -X -DartifactId=maven-jblanket-plugin -DgroupId=jblanket > -Dversion=1.0.0503 > I get the following: > plugin:download-artifact: > [echo] repo is 'http://.../repository' > [echo] trying to download > http://.../jblanket/plugins/maven-jblanket-plugin-1.0.0503.jar > Getting URL: > http://.../repository/jblanket/plugins/maven-jblanket-plugin-1.0.0503.jar > Credentials cannot be used for NTLM authentication: > org.apache.commons.httpclient.UsernamePasswordCredentials > Received status code: 407 > [echo] repo is 'http://www.ibiblio.org/maven' > [echo] trying to download > http://www.ibiblio.org/maven/jblanket/plugins/maven-jblanket-plugin-1.0.0503.jar > Getting URL: > http://www.ibiblio.org/maven/jblanket/plugins/maven-jblanket-plugin-1.0.0503.jar > Credentials cannot be used for NTLM authentication: > org.apache.commons.httpclient.UsernamePasswordCredentials > Received status code: 407 > (this is the case where it is in ibiblio). > (removed name of our repository to protect the innocent). > or maven -X -DartifactId=maven-xdoclet-plugin -DgroupId=xdoclet -Dversion=1.2 > plugin:download > plugin:download-artifact: > [echo] repo is 'http://.../repository' > [echo] trying to download > http://.../repository/xdoclet/plugins/maven-xdoclet-plugin-1.2.jar > Getting URL: > http://.../repository/xdoclet/plugins/maven-xdoclet-plugin-1.2.jar > Credentials cannot be used for NTLM authentication: > org.apache.commons.httpclient.UsernamePasswordCredentials > Received status code: 407 > [echo] repo is 'http://www.ibiblio.org/maven' > [echo] trying to download > http://www.ibiblio.org/maven/xdoclet/plugins/maven-xdoclet-plugin-1.2.jar > Getting URL: > http://www.ibiblio.org/maven/xdoclet/plugins/maven-xdoclet-plugin-1.2.jar > Credentials cannot be used for NTLM authentication: > org.apache.commons.httpclient.UsernamePasswordCredentials > Received status code: 407 > (this is the case where it's in our local repo but we can't selectively turn > off the proxy) > My initial investigation indicates that it could be that: > <j:invokeStatic var="dummy" method="getFile" > className="org.apache.maven.util.HttpUtils"> > <j:arg type="java.lang.String" value="${remoteFile}" /> > <j:arg type="java.io.File" value="${localPluginFile}"/> > <j:arg type="boolean" value="false"/> > <j:arg type="boolean" value="true"/> > <j:arg type="java.lang.String" value="${maven.proxy.host}" /> > <j:arg type="java.lang.String" value="${maven.proxy.port}" /> > <j:arg type="java.lang.String" value="${maven.proxy.username}" /> > <j:arg type="java.lang.String" value="${maven.proxy.password}" /> > <j:arg type="boolean" value="false"/> > </j:invokeStatic> > in plugin.jelly doesn't allow for passing the maven.proxy.ntlm.host/domain > into the HttpUtils.getFile method. -- 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 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]