# Connection to https://repo1.maven.org refused while running gradle build

**URL:** https://discuss.gradle.org/t/connection-to-https-repo1-maven-org-refused-while-running-gradle-build/12961
**Category:** Help/Discuss
**Created:** [November 27, 2015, 10:35am UTC](https://discuss.gradle.org/t/connection-to-https-repo1-maven-org-refused-while-running-gradle-build/12961 "2015-11-27T10:35:50Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![vidya](https://avatars.discourse-cdn.com/v4/letter/v/58f4c7/32.png) [@vidya](https://discuss.gradle.org/u/vidya)
#### Post date: [November 27, 2015, 10:35am UTC](https://discuss.gradle.org/t/connection-to-https-repo1-maven-org-refused-while-running-gradle-build/12961/1 "2015-11-27T10:35:50Z")

</div>

I have configured gradle in eclipse and setup proxy in eclipse\>preferences\>General\>network connections\>manual proxy. I also confirmed whether eclipse marketplace is accessible. still after running gradle build getting following error :Connection to [https://repo1.maven.org](https://repo1.maven.org) refused :  
PF my gradle script below - Anyone has clue what am I missing in configuration. If eclipse marketplace is accessible that means my proxy is working fine so this maven central url [https://repo1.maven.org](https://repo1.maven.org) should also be accessible. waiting for you suggestions.

```
apply plugin: 'java'
apply plugin: 'eclipse-wtp'
apply plugin: 'war'

repositories {
   mavenLocal()
   mavenCentral()
}

// Uses JDK 7
sourceCompatibility = 1.7
targetCompatibility = 1.7

dependencies {

compile "axiom:axiom.jar"
compile "com.azalea.ufl:com.azalea.ufl.barcode.1.0.jar"
compile "commons:commons-codec-1.3.jar"
compile "commons:commons-collections-3.1.jar"
compile "commons:commons-configuration-1.2.jar"
compile "commons:commons-io-1.4.jar"
compile "commons:commons-lang-2.1.jar"
compile "commons:commons-logging.jar"
compile "Crystal:CrystalCommon2.jar"
compile "Crystal:CrystalReportsRuntime.jar"
compile "cvom:cvom.jar"
compile "Database:DatabaseConnectors.jar"
compile "icu4j:icu4j.jar"
compile "iText:iText-2.1.5.jar"
compile "jai:jai_imageio.jar"
compile "jaxen:jaxen-core.jar"
compile "jaxen:jaxen-jdom.jar"
compile "JDBInterface:JDBInterface.jar"
compile "jdom:jdom.jar"
compile "jrcerom:jrcerom.jar"
compile "keycode:keycodeDecoder.jar"
compile "log:log4j.jar"
compile "logging:logging.jar"
compile "ojbc:ojdbc14.jar"
compile "pfj:pfjgraphics.jar"
compile "Query:QueryBuilder.jar"
compile "sax:saxpath.jar"
compile "spring:spring-webmvc-2.5.6.jar"
compile "spring:spring-ws-1.5.6-all.jar"
compile "spring:spring.jar"
compile "web:webreporting-jsf.jar"
compile "web:webreporting.jar"
compile "wstx:wstx-asl-3.2.4.jar"
compile "XML:XMLConnector.jar"
compile "xpp:xpp3-without-QName.jar"
compile "xstream:xstream-1.4.8.jar"

runtime "wsdl:wsdl4j.jar"
    
}

version = '1.0'

jar {
baseName = 'com.abc.test_dep.war'
version = '0.1.0'
}

war.archiveName "com.abc.test.war"

task dist(dependsOn: 'war') << {
    copy {
        from war.archivePath
        into "dist/"
    }
}
```
