title: How do I resolve "Failed to collect dependencies" error in Maven?
body: <p>I'm using Maven 3 in my project.  It's been sitting on the shelf for a while, but we recently started working on it again.</p>
  
  <p>When I try to build it I'm getting the following error:</p>
  
  <blockquote>
    <p>[ERROR] Failed to execute goal on project tahrir:<br>
        Could not resolve dependencies for project tahrirproject:tahrir:jar:0.0.1-SNAPSHOT:<br>
        Failed to collect dependencies for [com.google.code.gson:gson:jar:2.2.2 (compile), org.apache.commons:commons-math3:jar:3.0 (compile), args4j:args4j:jar:2.0.16 (compile), org.testng:testng:jar:5.14 (test), bouncycastle:bcprov-jdk16:jar:140 (compile), com.google.guava:guava:jar:13.0 (compile), ch.qos.logback:logback-classic:jar:0.9.28 (compile), com.miglayout:miglayout:jar:3.7.4 (compile), org.datanucleus:datanucleus-db4o:jar:3.0.0-m3 (compile), joda-time:joda-time:jar:1.6.2 (compile), com.google.inject:guice:jar:3.0 (compile), com.seaglasslookandfeel:seaglasslookandfeel:jar:0.2 (compile), xom:xom:jar:1.2.5 (compile), commons-codec:commons-codec:jar:1.6 (compile), org.apache.commons:commons-lang3:jar:3.1 (compile)]:<br>
    Failed to read artifact descriptor for db4o:db4o:jar:7.12.126.14142-all-java5: Could not transfer artifact db4o:db4o:pom:7.12.126.14142-all-java5 from/to local.repository (file:../../local.repository/trunk):<br>
    No connector available to access repository local.repository (file:../../local.repository/trunk) of type legacy using the available factories WagonRepositoryConnectorFactory -> [Help 1]</p>
  </blockquote>
  
  <p>Here is my pom.xml file: <a href="https://github.com/sanity/tahrir/blob/master/pom.xml" rel="nofollow noreferrer">https://github.com/sanity/tahrir/blob/master/pom.xml</a></p>
  
  <p>I've seen that this can be related to trying to access Maven 1 or 2 repositories from Maven 3.  If this is the issue I'd prefer to only use Maven 3 respositories, yet currently all of the dependencies I'm specifying should be in the default Maven repository, so I'm not sure what the issue is.</p>
  
  <p>Any specific advice about how to properly "fix" our pom.xml file would be greatly appreciated.</p>