title: Configure Artifactory to proxy Remote Repository via Proxy
body: <p>First I created a proxy configuration in Artifactory with required host IP and port then I configured for the maven remote repo:  </p>
  
  <pre><code>http://repo.maven.apache.org/maven2/
  </code></pre>
  
  <p>I selected "maven" for package type, "maven-2-default" for repository layout and remote layout mapping, selected the proxy key (Artifactory identifier) under the network tab. But clicking "test" yields:</p>
  
  <pre><code>Connection failed: Error 403: Forbidden (on a popup window, no logging)
  </code></pre>
  
  <p>That is, no information appears in the Artifactory logs when using the "test" connection button; however, the 403 connection failed error always pops up with the button.</p>
  
  <p>On a browser, an error is logged when navigating to:</p>
  
  <pre><code>https://{private name}/artifactory/list/{artifactory name for proxy repo}/
  </code></pre>
  
  <p>The error is:</p>
  
  <pre><code>{date time} [http-nio-8085-exec-5] [INFO ] (o.a.r.RemoteRepoBase:940) - Error listing remote resources http://repo1.maven.org/maven2/: Unable to retrieve http://repo1.maven.org/maven2/: 403: Forbidden (remote response: 403: Forbidden)
  </code></pre>
  
  <p>The server.xml file for Catalina shows that a connection is setup with port 8085, redirect 8443, UTF-8, and as shown above the default protocol is http nio.</p>
  
  <p>Performing the following operation from the Artifactory server works fine and returns the html page, index of maven 2.</p>
  
  <pre><code>curl -x {proxy IP}:{proxy port} http://repo.maven.apache.org/maven2/
  </code></pre>
  
  <p>Without Artifactory, maven command-line, lifecycle operations work using the proxy. The proxy and an active profile configuration with the repository url info were added to the maven settings.xml file.</p>
  
  <p>LDAP settings in Artifactory appear to be working fine. The test button for the ldap settings yield "Successfully connected and authenticated the test user." </p>
  
  <p>The permissions settings are set to allow manage for the account connected via the Artifactory UI.</p>
  
  <p>There are other, similar questions but a relevant solution to this problem is not discussed: </p>
  
  <p><a href="https://stackoverflow.com/questions/10350753/maven-github-repository-artifactory">Maven Github repository + Artifactory</a></p>
  
  <p><a href="https://stackoverflow.com/questions/1289402/how-to-debug-http-proxy-problems-with-artifactory?rq=1">How to debug HTTP Proxy problems with artifactory?</a></p>