Unable to access nexus repo to download the dependencies
<p>I can see that the service is is hosted successfully.</p>

<p><a href="https://i.stack.imgur.com/fDhcM.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fDhcM.jpg" alt="enter image description here"></a></p>

<p>My gradle script looks like this </p>

<pre><code>group 'com.tinkering'
version '1.0-SNAPSHOT'

apply plugin: 'java'
apply plugin: 'idea'


sourceCompatibility = 1.8

repositories {
    //mavenCentral()
    maven{
        url 'http://linkxserver:8081/nexus/content/repositories/central/'
      //url 'http://localhost:8081/nexus/content/repositories/central/'

    }
}

dependencies {
    compile 'com.google.code.gson:gson:2.3.1'

    testCompile group: 'junit', name: 'junit', version: '4.11'

}
</code></pre>

<p>When I am trying to run the gradle build, I am getting unknow host exception</p>

<pre><code>$ ./gradlew clean build
:clean UP-TO-DATE
:compileJava

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all dependencies for configuration ':compile'.
&gt; Could not resolve com.google.code.gson:gson:2.3.1.
  Required by:
      com.tinkering:gradletinker:1.0-SNAPSHOT
   &gt; Could not resolve com.google.code.gson:gson:2.3.1.
      &gt; Could not get resource 'http://linkxserver:8081/nexus/content/repositories/central/com/google/code/gson/gson/2.3.1/gson-2.3.1.pom'.
         &gt; Could not HEAD 'http://linkxserver:8081/nexus/content/repositories/central/com/google/code/gson/gson/2.3.1/gson-2.3.1.pom'.  Received status code 502 from server: internal error - server connection terminated
</code></pre>

<p>I did a curl on <code>http://linkxserver:8081/nexus/content/repositories/central/com/google/code/gson/gson/2.3.1/gson-2.3.1.pom</code> and getting the pom back.</p>

<p>I have setup the proxy server and I have the following repository configuration settings:</p>

<p><a href="https://i.stack.imgur.com/cP4fv.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cP4fv.jpg" alt="enter image description here"></a></p>

<p>I followed exactly the same steps on my local machine and its working fine :-(</p>

<p><strong>UPDATE:</strong> The Browse storage tab shows the pom's but not show any jar file downloaded.</p>

<p><a href="https://i.stack.imgur.com/fZhK3.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fZhK3.jpg" alt="enter image description here"></a></p>