title: Maven : Failed to collect dependencies
body: <p>I have exported a Maven Project . (So i dont have settings.xml file with me ) </p>
  
  <p>When i ran the Mavens POM.xml file the build is failin due to this reasson </p>
  
  <blockquote>
    <p>Failed to execute goal on project bayer-ws: Could not resolve
    dependencies for project com.tata:bayer-ws:war:1.0: Failed to collect
    dependencies for [com.tata:bayer-util:jar:1.0 (compile),
    com.tata:bayer-model:jar:1.0 (compile), com.tata:bayer-samples:jar:1.0
    (compile), com.tata:bayer-mw:jar:1.0 (compile),
    com.tata:bayer-fixml:jar:1.0 (compile), cglib:cglib-nodep:jar:2.1_3
    (runtime), jdom:jdom:jar:1.1 (compile),
    org.apache.ws.commons.schema:XmlSchema:jar:1.4.5 (runtime),
    javax.servlet:servlet-api:jar:2.5 (provided), junit:junit:jar:4.4
    (test), org.easymock:easymockclassextension:jar:2.3 (test),
    org.easymock:easymock:jar:2.3 (test),
    org.apache.cxf:cxf-rt-bindings-http:jar:2.2.1 (compile),
    org.apache.cxf:cxf-rt-ws-security:jar:2.2.1 (compile),
    org.apache.derby:derby:jar:10.3.1.4 (test),
    org.springframework:spring-beans:jar:2.5.2 (compile),
    org.springframework:spring-context:jar:2.5.2 (compile),
    org.springframework:spring-core:jar:2.5.2 (compile),
    org.springframework:spring-web:jar:2.5.2 (compile),
    log4j:log4j:jar:1.2.14 (runtime),
    commons-logging:commons-logging:jar:1.1.1 (runtime),
    com.tata:middleware:jar:5.0.0 (compile), com.tata:PRO:jar:1.0.0
    (compile), com.tata:legacy.backoffice:jar:1.0.0 (compile),
    hessian:hessian:jar:3.0.8 (compile),
    commons-httpclient:commons-httpclient:jar:3.1 (runtime),
    xstream:xstream:jar:1.2.2 (compile), bouncycastle:bcprov-jdk16:jar:140
    (runtime), org.apache.ws.security:wss4j:jar:1.5.8 (compile),
    net.sf.ehcache:ehcache-core:jar:2.4.1 (runtime)]: Failed to read
    artifact descriptor for commons-logging:commons-logging:jar:99.1:
    Could not transfer artifact commons-logging:commons-logging:pom:99.1
    from/to maven-central (http://repo1.maven.org/maven/): No connector
    available to access repository maven-central
    (http://repo1.maven.org/maven/) of type legacy using the available
    factories AsyncRepositoryConnectorFactory,
    WagonRepositoryConnectorFactory -> [Help 1]</p>
  </blockquote>
  
  <hr>
  
  <p><strong>// Before</strong>   </p>
  
  <pre><code> &lt;repositories&gt;
              &lt;repository&gt;
                  &lt;id&gt;central&lt;/id&gt;
                  &lt;url&gt;http://repo1.maven.org/maven2&lt;/url&gt;
                  &lt;releases&gt;
                      &lt;enabled&gt;true&lt;/enabled&gt;
                      &lt;updatePolicy&gt;never&lt;/updatePolicy&gt;
                  &lt;/releases&gt;
                  &lt;snapshots&gt;
                      &lt;enabled&gt;false&lt;/enabled&gt;
                      &lt;updatePolicy&gt;always&lt;/updatePolicy&gt;
                  &lt;/snapshots&gt;
              &lt;/repository&gt;
              &lt;repository&gt;
                  &lt;id&gt;codehaus&lt;/id&gt;
                  &lt;url&gt;http://repository.codehaus.org/&lt;/url&gt;
                  &lt;releases&gt;
                      &lt;enabled&gt;true&lt;/enabled&gt;
                      &lt;updatePolicy&gt;never&lt;/updatePolicy&gt;
                  &lt;/releases&gt;
                  &lt;snapshots&gt;
                      &lt;enabled&gt;false&lt;/enabled&gt;
                      &lt;updatePolicy&gt;always&lt;/updatePolicy&gt;
                  &lt;/snapshots&gt;
              &lt;/repository&gt;
              &lt;repository&gt;
                  &lt;id&gt;Apache Incubating Repository&lt;/id&gt;
                  &lt;url&gt;http://people.apache.org/repo/m2-incubating-repository&lt;/url&gt;
                  &lt;releases&gt;
                      &lt;enabled&gt;true&lt;/enabled&gt;
                      &lt;updatePolicy&gt;never&lt;/updatePolicy&gt;
                  &lt;/releases&gt;
                  &lt;snapshots&gt;
                      &lt;enabled&gt;false&lt;/enabled&gt;
                      &lt;updatePolicy&gt;always&lt;/updatePolicy&gt;
                  &lt;/snapshots&gt;
              &lt;/repository&gt;
              &lt;repository&gt;
                  &lt;id&gt;apache-snapshot&lt;/id&gt;
                  &lt;name&gt;Apache Maven Snapshot&lt;/name&gt;
                  &lt;url&gt;http://people.apache.org/repo/m2-snapshot-repository&lt;/url&gt;
                  &lt;releases&gt;
                      &lt;enabled&gt;false&lt;/enabled&gt;
                      &lt;updatePolicy&gt;always&lt;/updatePolicy&gt;
                  &lt;/releases&gt;
                  &lt;snapshots&gt;
                      &lt;enabled&gt;false&lt;/enabled&gt;
                      &lt;updatePolicy&gt;always&lt;/updatePolicy&gt;
                  &lt;/snapshots&gt;
              &lt;/repository&gt;
              &lt;repository&gt;
  </code></pre>
  
  <p><strong>after</strong></p>
  
  <pre><code>&lt;repositories&gt;
          &lt;repository&gt;
              &lt;id&gt;central&lt;/id&gt;
              &lt;url&gt;http://nexus.sonatype.org/url&gt;  &lt;!--Here i did a change--&gt;
              &lt;releases&gt;
                  &lt;enabled&gt;true&lt;/enabled&gt;
                  &lt;updatePolicy&gt;never&lt;/updatePolicy&gt;
              &lt;/releases&gt;
              &lt;snapshots&gt;
                  &lt;enabled&gt;false&lt;/enabled&gt;
                  &lt;updatePolicy&gt;always&lt;/updatePolicy&gt;
              &lt;/snapshots&gt;
          &lt;/repository&gt;
          &lt;repository&gt;
              &lt;id&gt;codehaus&lt;/id&gt;
              &lt;url&gt;http://repository.codehaus.org/&lt;/url&gt;
              &lt;releases&gt;
                  &lt;enabled&gt;true&lt;/enabled&gt;
                  &lt;updatePolicy&gt;never&lt;/updatePolicy&gt;
              &lt;/releases&gt;
              &lt;snapshots&gt;
                  &lt;enabled&gt;false&lt;/enabled&gt;
                  &lt;updatePolicy&gt;always&lt;/updatePolicy&gt;
              &lt;/snapshots&gt;
          &lt;/repository&gt;
          &lt;repository&gt;
              &lt;id&gt;Apache Incubating Repository&lt;/id&gt;
              &lt;url&gt;http://people.apache.org/repo/m2-incubating-repository&lt;/url&gt;
              &lt;releases&gt;
                  &lt;enabled&gt;true&lt;/enabled&gt;
                  &lt;updatePolicy&gt;never&lt;/updatePolicy&gt;
              &lt;/releases&gt;
              &lt;snapshots&gt;
                  &lt;enabled&gt;false&lt;/enabled&gt;
                  &lt;updatePolicy&gt;always&lt;/updatePolicy&gt;
              &lt;/snapshots&gt;
          &lt;/repository&gt;
          &lt;repository&gt;
              &lt;id&gt;apache-snapshot&lt;/id&gt;
              &lt;name&gt;Apache Maven Snapshot&lt;/name&gt;
              &lt;url&gt;http://people.apache.org/repo/m2-snapshot-repository&lt;/url&gt;
              &lt;releases&gt;
                  &lt;enabled&gt;false&lt;/enabled&gt;
                  &lt;updatePolicy&gt;always&lt;/updatePolicy&gt;
              &lt;/releases&gt;
              &lt;snapshots&gt;
                  &lt;enabled&gt;false&lt;/enabled&gt;
                  &lt;updatePolicy&gt;always&lt;/updatePolicy&gt;
              &lt;/snapshots&gt;
          &lt;/repository&gt;
          &lt;repository&gt;
  </code></pre>