title: Maven resolved commons-collections groupid as org.apache.commons.collections and can't find version 3.2.1
body: <p>in my pom I have a dependency:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;commons-collections&lt;/groupId&gt;
      &lt;artifactId&gt;commons-collections&lt;/artifactId&gt;
      &lt;version&gt;3.2.1&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>IMHO This is the correct dependency (compare <a href="http://mvnrepository.com/artifact/commons-collections/commons-collections/3.2.1" rel="nofollow">http://mvnrepository.com/artifact/commons-collections/commons-collections/3.2.1</a>).</p>
  
  <p>However when Maven tries to resolve this, the URLs it trying for are:</p>
  
  <pre><code>Downloading: http://mvnrepository.com/org/apache/commons/commons-collections/3.2.1/commons-collections-3.2.1.pom
  Downloading: http://central.maven.org/org/apache/commons/commons-collections/3.2.1/commons-collections-3.2.1.pom
  Downloading: http://repo1.maven.org/org/apache/commons/commons-collections/3.2.1/commons-collections-3.2.1.pom
  Downloading: https://oss.sonatype.org/content/repositories/snapshots/org/apache/commons/commons-collections/3.2.1/commons-collections-3.2.1.pom
  Downloading: http://snapshots.repository.codehaus.org/org/apache/commons/commons-collections/3.2.1/commons-collections-3.2.1.pom
  Downloading: http://repository.codehaus.org/org/apache/commons/commons-collections/3.2.1/commons-collections-3.2.1.pom
  Downloading: http://repo.maven.apache.org/maven2/org/apache/commons/commons-collections/3.2.1/commons-collections-3.2.1.pom
  [WARNING] The POM for org.apache.commons:commons-collections:jar:3.2.1 is missing, no dependency information available
  Downloading: http://almvn.solnetsolutions.co.nz/content/groups/public/org/apache/commons/commons-collections/3.2.1/commons-collections-3.2.1.jar
  Downloading: http://almvn.solnetsolutions.co.nz/content/repositories/releases/org/apache/commons/commons-collections/3.2.1/commons-collections-3.2.1.jar
  Downloading: http://mvnrepository.com/org/apache/commons/commons-collections/3.2.1/commons-collections-3.2.1.jar
  Downloading: http://central.maven.org/org/apache/commons/commons-collections/3.2.1/commons-collections-3.2.1.jar
  Downloading: http://repo1.maven.org/org/apache/commons/commons-collections/3.2.1/commons-collections-3.2.1.jar
  Downloading: https://oss.sonatype.org/content/repositories/snapshots/org/apache/commons/commons-collections/3.2.1/commons-collections-3.2.1.jar
  Downloading: http://snapshots.repository.codehaus.org/org/apache/commons/commons-collections/3.2.1/commons-collections-3.2.1.jar
  Downloading: http://repository.codehaus.org/org/apache/commons/commons-collections/3.2.1/commons-collections-3.2.1.jar
  Downloading: http://repo.maven.apache.org/maven2/org/apache/commons/commons-collections/3.2.1/commons-collections-3.2.1.jar
  </code></pre>
  
  <p>Those all fail, as (IMHO) it is the wrong group id (org/apache/commons). 
  Where does it get the "org/apache/commons" in the URL path from ?</p>
  
  <p>I have no other dependency that would even mention org.apache in the group id.</p>
  
  <p>Where does Maven get this URL from ?</p>
  
  <p>It is just so wrong, why can't it resolve it correctly to:
  <a href="http://central.maven.org/maven2/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar" rel="nofollow">http://central.maven.org/maven2/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar</a> </p>
  
  <p>?</p>
  
  <p>My Maven setup is:</p>
  
  <pre><code>Apache Maven 3.0.4 (r1232337; 2012-01-17 21:44:56+1300)
  Maven home: /home/solnet/apache-maven-3.0.4
  Java version: 1.7.0_11, vendor: Oracle Corporation
  Java home: /home/solnet/jdk1.7.0_11/jre
  Default locale: en_NZ, platform encoding: UTF-8
  OS name: "linux", version: "2.6.32-358.2.1.el6.x86_64", arch: "amd64", family: "unix"
  </code></pre>
  
  <p>This is my repository setup in the pom file:</p>
  
  <pre><code>    &lt;repositories&gt;
  
          &lt;repository&gt;
              &lt;id&gt;mvnrepo&lt;/id&gt;
              &lt;name&gt;mvnrepo&lt;/name&gt;
              &lt;url&gt;http://mvnrepository.com&lt;/url&gt;
          &lt;/repository&gt;
  
           &lt;repository&gt;
              &lt;id&gt;centralmvn&lt;/id&gt;
              &lt;name&gt;centralmvn&lt;/name&gt;
              &lt;url&gt;http://central.maven.org&lt;/url&gt;
          &lt;/repository&gt;
          &lt;repository&gt;
              &lt;id&gt;mvnrepo2&lt;/id&gt;
              &lt;name&gt;mvnrepo2&lt;/name&gt;
              &lt;url&gt;http://repo1.maven.org&lt;/url&gt;
          &lt;/repository&gt;
          &lt;repository&gt;
              &lt;id&gt;oss-sonatype-snapshots&lt;/id&gt;
              &lt;url&gt;https://oss.sonatype.org/content/repositories/snapshots/&lt;/url&gt;
          &lt;/repository&gt;
          &lt;repository&gt;
              &lt;id&gt;codehaus-snaphosts&lt;/id&gt;
              &lt;name&gt;Codehaus Snapshots&lt;/name&gt;
              &lt;url&gt;http://snapshots.repository.codehaus.org/&lt;/url&gt;
          &lt;/repository&gt;
          &lt;repository&gt;
              &lt;id&gt;codehaus-releases&lt;/id&gt;
              &lt;name&gt;CodeHaus Releases&lt;/name&gt;
              &lt;url&gt;http://repository.codehaus.org/&lt;/url&gt;
          &lt;/repository&gt;
  
     /repositories&gt;
  </code></pre>
  
  <p>And this is the output of "mvn help:effective-pom"
   ... too big for stackoverflow so see: <a href="http://pastebin.com/RHAkUmMu" rel="nofollow">http://pastebin.com/RHAkUmMu</a></p>
  
  <p>And this is the output of</p>
  
  <p>mvn dependency:tree -Dincludes="org.apache.commons:commons-collections"</p>
  
  <pre><code>[INFO] Scanning for projects...
  [INFO]                                                                         
  [INFO] ------------------------------------------------------------------------
  [INFO] Building mobilewebapp 1.1.0-SNAPSHOT
  [INFO] ------------------------------------------------------------------------
  Downloading: http://mvnrepository.com/org/apache/commons/commons-collections/3.2.1/commons-collections-3.2.1.pom
  Downloading: http://central.maven.org/org/apache/commons/commons-collections/3.2.1/commons-collections-3.2.1.pom
  Downloading: http://repo1.maven.org/maven2/org/apache/commons/commons-collections/3.2.1/commons-collections-3.2.1.pom
  Downloading: https://oss.sonatype.org/content/repositories/snapshots/org/apache/commons/commons-collections/3.2.1/commons-collections-3.2.1.pom
  Downloading: http://snapshots.repository.codehaus.org/org/apache/commons/commons-collections/3.2.1/commons-collections-3.2.1.pom
  Downloading: http://repository.codehaus.org/org/apache/commons/commons-collections/3.2.1/commons-collections-3.2.1.pom
  Downloading: http://repo.maven.apache.org/maven2/org/apache/commons/commons-collections/3.2.1/commons-collections-3.2.1.pom
  Downloading: http://almvn.solnetsolutions.co.nz/content/groups/public/org/apache/commons/commons-collections/3.2.1/commons-collections-3.2.1.pom
  Downloading: http://almvn.solnetsolutions.co.nz/content/repositories/releases/org/apache/commons/commons-collections/3.2.1/commons-collections-3.2.1.pom
  [WARNING] The POM for org.apache.commons:commons-collections:jar:3.2.1 is missing, no dependency information available
  Downloading: http://mvnrepository.com/org/apache/commons/commons-collections/3.2.1/commons-collections-3.2.1.jar
  Downloading: http://central.maven.org/org/apache/commons/commons-collections/3.2.1/commons-collections-3.2.1.jar
  Downloading: http://repo1.maven.org/maven2/org/apache/commons/commons-collections/3.2.1/commons-collections-3.2.1.jar
  Downloading: https://oss.sonatype.org/content/repositories/snapshots/org/apache/commons/commons-collections/3.2.1/commons-collections-3.2.1.jar
  Downloading: http://snapshots.repository.codehaus.org/org/apache/commons/commons-collections/3.2.1/commons-collections-3.2.1.jar
  Downloading: http://repository.codehaus.org/org/apache/commons/commons-collections/3.2.1/commons-collections-3.2.1.jar
  Downloading: http://repo.maven.apache.org/maven2/org/apache/commons/commons-collections/3.2.1/commons-collections-3.2.1.jar
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 9.986s
  [INFO] Finished at: Thu Sep 04 11:28:24 NZST 2014
  [INFO] Final Memory: 9M/107M
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal on project mobilewebapp: Could not resolve dependencies for project nz.co.nzlotteries:mobilewebapp:war:1.1.0-SNAPSHOT: Could not find artifact org.apache.commons:commons-collections:jar:3.2.1 in mvnrepo (http://mvnrepository.com) -&gt; [Help 1]
  [ERROR] 
  [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  [ERROR] 
  [ERROR] For more information about the errors and possible solutions, please read the following articles:
  [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
  </code></pre>