title: Could not transfer artifact org.apache.maven.plugins:maven-surefire-plugin:pom:2.7.1 from/to central (http://repo1.maven.org/maven2)
body: <p>I have created a new maven project in SpringSource Tool Suite. I am getting this error in my new maven project.</p>
  
  <blockquote>
    <p>Failure to transfer
    org.apache.maven.plugins:maven-surefire-plugin:pom:2.7.1 from
    <a href="http://repo1.maven.org/maven2" rel="noreferrer">http://repo1.maven.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.apache.maven.plugins:maven-surefire-plugin:pom:2.7.1 from/to
    central (<a href="http://repo1.maven.org/maven2" rel="noreferrer">http://repo1.maven.org/maven2</a>): Connect times out</p>
  </blockquote>
  
  <p><strong>pom.xml:</strong></p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
                               http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
  
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
    &lt;groupId&gt;com.test.app&lt;/groupId&gt;
    &lt;artifactId&gt;TestApp&lt;/artifactId&gt;
    &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
    &lt;packaging&gt;jar&lt;/packaging&gt;
  
    &lt;name&gt;TestApp&lt;/name&gt;
    &lt;url&gt;http://maven.apache.org&lt;/url&gt;
  
    &lt;properties&gt;
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
    &lt;/properties&gt;
  
    &lt;dependencies&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;junit&lt;/groupId&gt;
        &lt;artifactId&gt;junit&lt;/artifactId&gt;
        &lt;version&gt;3.8.1&lt;/version&gt;
        &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
    &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>Settings.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" 
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
            xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"&gt;
    &lt;pluginGroups&gt;
    &lt;/pluginGroups&gt;
   &lt;proxies&gt;
      &lt;proxy&gt;
        &lt;id&gt;optional&lt;/id&gt;
        &lt;active&gt;true&lt;/active&gt;
        &lt;protocol&gt;http&lt;/protocol&gt;
        &lt;username&gt;user&lt;/username&gt;
        &lt;password&gt;pass&lt;/password&gt;
        &lt;host&gt;ip&lt;/host&gt;
        &lt;port&gt;80&lt;/port&gt;
        &lt;nonProxyHosts&gt;local.net|some.host.com&lt;/nonProxyHosts&gt;
      &lt;/proxy&gt;    
    &lt;/proxies&gt; 
    &lt;servers&gt;  
    &lt;/servers&gt;
      &lt;mirrors&gt;   
      &lt;mirror&gt;
        &lt;id&gt;mirrorId&lt;/id&gt;
        &lt;mirrorOf&gt;repositoryId&lt;/mirrorOf&gt;
        &lt;name&gt;Human Readable Name for this Mirror.&lt;/name&gt;
        &lt;url&gt;http://repo1.maven.org/maven2/&lt;/url&gt;
      &lt;/mirror&gt;    
    &lt;/mirrors&gt;  
  &lt;profiles&gt;
   &lt;/profiles&gt;
  &lt;/settings&gt;
  </code></pre>
  
  <p>Please note that I am able to build it.Error is showing in pom.xml inside IDE .Any solutions?</p>