gradle - Unable to access nexus repo to download the dependencies -


i can see service is hosted successfully.

enter image description here

my gradle script looks

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'  } 

when trying run gradle build, getting unknow host exception

$ ./gradlew clean build :clean up-to-date :compilejava  failure: build failed exception.  * went wrong: not resolve dependencies configuration ':compile'. > not resolve com.google.code.gson:gson:2.3.1.   required by:       com.tinkering:gradletinker:1.0-snapshot    > not resolve com.google.code.gson:gson:2.3.1.       > not resource 'http://linkxserver:8081/nexus/content/repositories/central/com/google/code/gson/gson/2.3.1/gson-2.3.1.pom'.          > 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 server: internal error - server connection terminated 

i did curl on http://linkxserver:8081/nexus/content/repositories/central/com/google/code/gson/gson/2.3.1/gson-2.3.1.pom , getting pom back.

i have setup proxy server , have following repository configuration settings:

enter image description here

i followed same steps on local machine , working fine :-(

update: browse storage tab shows pom's not show jar file downloaded.

enter image description here


Comments

Popular posts from this blog

gridview - Yii2 DataPorivider $totalSum for a column -

java - Suppress Jboss version details from HTTP error response -

Sass watch command compiles .scss files before full sftp upload -