title: Maven behind a auto-generated proxy
body: <p>I'm behind a auto-generated proxy.</p>
  
  <p>I've configured my settings.xml to use this proxy, but it 
  still doesn't work. The Android SDK works fine with the
  same proxy which I've set.</p>
  
  <pre><code>&lt;settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
                    http://maven.apache.org/xsd/settings-1.0.0.xsd"&gt;
    &lt;proxies&gt;
      &lt;proxy&gt;
          &lt;id&gt;optional&lt;/id&gt;
          &lt;active&gt;true&lt;/active&gt;
          &lt;protocol&gt;http&lt;/protocol&gt;
          &lt;username&gt;&lt;/username&gt;
          &lt;password&gt;&lt;/password&gt;
          &lt;host&gt;MY-PROXY-HOST-HERE&lt;/host&gt;
          &lt;port&gt;8080&lt;/port&gt;
          &lt;nonProxyHosts&gt;&lt;/nonProxyHosts&gt;
      &lt;/proxy&gt;
    &lt;/proxies&gt;
  &lt;/settings&gt;
  </code></pre>
  
  <p>What else can I do to make maven to work?</p>
  
  <p>Error:</p>
  
  <pre><code>WARNING: NTLM authentication error: Credentials cannot be used for NTLM authenti
  cation: org.apache.maven.wagon.providers.http.httpclient.auth.UsernamePasswordCr
  edentials
  </code></pre>
  
  <p>How to get my NTLM authentication credintals?</p>
  
  <hr>
  
  <pre><code>Original error: Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/to central (http://repo.maven.apache.org/maven2): Not authorized by proxy , ReasonPhrase:Proxy Authorization Required.
  </code></pre>
  
  <p>This is the output message. In my wpad.dat (from where I've taken proxy data), I don't have a specified username and password...</p>