title: Could not transfer artifacts from/to central maven repo when using Spring Framework Cloud
body: <p>I am trying to create a maven project using Spring Framework Cloud. 
  I defined pom.xml file as below</p>
  
  <pre><code>&lt;parent&gt;
          &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
          &lt;artifactId&gt;spring-cloud-starter-parent&lt;/artifactId&gt;
          &lt;version&gt;Brixton.RELEASE&lt;/version&gt;
      &lt;/parent&gt;
  
      &lt;properties&gt;
          &lt;!-- Stand-alone RESTFul application for testing only --&gt;
          &lt;start-class&gt;io.pivotal.microservices.services.Main&lt;/start-class&gt;
      &lt;/properties&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;!-- Setup Spring Boot --&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;!-- Setup Spring MVC &amp; REST, use Embedded Tomcat --&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-thymeleaf&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;!-- Setup Spring Data common components --&gt;
              &lt;groupId&gt;org.springframework.data&lt;/groupId&gt;
              &lt;artifactId&gt;spring-data-commons&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;!-- Testing starter --&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;!-- Setup Spring Data JPA Repository support --&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-data-jpa&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;!-- In-memory database for testing/demos --&gt;
              &lt;groupId&gt;org.hsqldb&lt;/groupId&gt;
              &lt;artifactId&gt;hsqldb&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;!-- Spring Cloud starter --&gt;
              &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
              &lt;artifactId&gt;spring-cloud-starter&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;!-- Eureka service registration --&gt;
              &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
              &lt;artifactId&gt;spring-cloud-starter-eureka-server&lt;/artifactId&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  </code></pre>
  
  <p>When trying to build maven getting error for all dependencies as </p>
  
  <p>Could not transfer artifacts from/to central (<a href="https://repo.maven.apache.org/maven2" rel="nofollow noreferrer">https://repo.maven.apache.org/maven2</a>) </p>
  
  <blockquote>
    <p>Multiple annotations found at this line:
      - Failure to transfer org.springframework:spring-orm:jar:4.2.6.RELEASE from
    <a href="https://repo.maven.apache.org/maven2" rel="nofollow noreferrer">https://repo.maven.apache.org/maven2</a> was cached in the local
    repository, resolution will not be     reattempted until the update
    interval of central has elapsed or updates are forced. Original error:
    Could not transfer artifact
    org.springframework:spring-orm:jar:4.2.6.RELEASE from/to central<br>
    (<a href="https://repo.maven.apache.org/maven2" rel="nofollow noreferrer">https://repo.maven.apache.org/maven2</a>): The operation was cancelled.
    org.eclipse.aether.transfer.ArtifactTransferException: Failure to
    transfer org.springframework:spring-orm:jar:
       4.2.6.RELEASE from <a href="https://repo.maven.apache.org/maven2" rel="nofollow noreferrer">https://repo.maven.apache.org/maven2</a> was cached in the local repository, resolution will not be reattempted until the
    update interval of central has elapsed or updates are      forced.
    Original error: Could not transfer artifact
    org.springframework:spring-orm:jar:4.2.6.RELEASE from/to central
    (<a href="https://repo.maven.apache.org/maven2" rel="nofollow noreferrer">https://repo.maven.apache.org/maven2</a>): The operation was cancelled.
    at<br>
    org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:238)
    at<br>
    org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:206)
    at<br>
    org.eclipse.aether.internal.impl.DefaultArtifactResolver.gatherDownloads(DefaultArtifactResolver.java:585)
    at<br>
    org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:503)
    at<br>
    org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:421)
    at<br>
    org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:246)
    at<br>
    org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:367)
    at</p>
  </blockquote>
  
  <p>When I go to the location, I can clearly see the Jar files are present in that location.
  Is there something else I need to add to my pom.xml?</p>