title: Maven dependency error - complaining about the dependency which is shown in repository
body: <p>I am running into this error when executing Mavin buuild: </p>
  
  <pre><code>[Step 2/4] Failed to execute goal on project m2tr-csheq-domain: Could not 
  resolve dependencies for project com.citi.mifid2:m2tr-csheq-domain:jar:1.4.0- 
  SNAPSHOT: Failed to collect dependencies for [com.citi.mifid2:m2tr- 
  commons:jar:1.4.0-SNAPSHOT (compile), org.apache.storm:storm-core:jar:1.1.0 
  (provided), com.citi.mifid2:storm-commons:jar:1.4.0-SNAPSHOT (compile), 
  com.citi.mifid2:commons:jar:1.4.0-SNAPSHOT (compile), org.apache.kafka:kafka- 
  clients:jar:0.11.0.2 (compile), com.esotericsoftware:kryo:jar:4.0.0 
  (provided), junit:junit:jar:4.12 (test), com.citi.mifid2:test- 
  utils:jar:1.4.0-SNAPSHOT (test)]
  </code></pre>
  
  <p>Here is the POM file:</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;parent&gt;
      &lt;groupId&gt;com.citi.mifid2&lt;/groupId&gt;
      &lt;artifactId&gt;m2tr&lt;/artifactId&gt;
      &lt;version&gt;1.4.0-SNAPSHOT&lt;/version&gt;
      &lt;relativePath&gt;../../pom.xml&lt;/relativePath&gt;
  &lt;/parent&gt;
  
  &lt;artifactId&gt;m2tr-csheq-domain&lt;/artifactId&gt;
  &lt;packaging&gt;jar&lt;/packaging&gt;
  &lt;name&gt;m2tr-csheq-domain&lt;/name&gt;
  
  &lt;properties&gt;
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
      &lt;java.version&gt;1.8&lt;/java.version&gt;
      &lt;provided.scope&gt;provided&lt;/provided.scope&gt;
      &lt;nexus.releases.url&gt;https://www.artifactrepository.citigroup.net:443/artifactory/maven-icg-teamdev-local&lt;/nexus.releases.url&gt;
      &lt;nexus.snapshots.url&gt;https://www.artifactrepository.citigroup.net:443/artifactory/maven-icg-teamdev-local&lt;/nexus.snapshots.url&gt;
  &lt;/properties&gt;
  
  &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.citi.mifid2&lt;/groupId&gt;
          &lt;artifactId&gt;m2tr-commons&lt;/artifactId&gt;
          &lt;version&gt;1.4.0-SNAPSHOT&lt;/version&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  
  &lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
              &lt;version&gt;${maven.compiler.plugin.version}&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;source&gt;1.8&lt;/source&gt;
                  &lt;target&gt;1.8&lt;/target&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
      &lt;sourceDirectory&gt;src/main/java&lt;/sourceDirectory&gt;
      &lt;testSourceDirectory&gt;src/test/java&lt;/testSourceDirectory&gt;
  &lt;/build&gt;
  
  &lt;distributionManagement&gt;
      &lt;repository&gt;
          &lt;id&gt;Releases&lt;/id&gt;
          &lt;name&gt;Releases&lt;/name&gt;
          &lt;url&gt;${nexus.releases.url}&lt;/url&gt;
      &lt;/repository&gt;
      &lt;snapshotRepository&gt;
          &lt;id&gt;Snapshots&lt;/id&gt;
          &lt;name&gt;Snapshots Releases&lt;/name&gt;
          &lt;url&gt;${nexus.snapshots.url}&lt;/url&gt;
      &lt;/snapshotRepository&gt;
  &lt;/distributionManagement&gt;
  &lt;repositories&gt;
      &lt;repository&gt;
          &lt;id&gt;uno-service-snapshots&lt;/id&gt;
          &lt;name&gt;Uno Service Snapshots&lt;/name&gt;
          &lt;url&gt;${nexus.snapshots.url}&lt;/url&gt;
          &lt;snapshots&gt;
              &lt;enabled&gt;true&lt;/enabled&gt;
              &lt;updatePolicy&gt;always&lt;/updatePolicy&gt;
          &lt;/snapshots&gt;
      &lt;/repository&gt;
  &lt;/repositories&gt;
  </code></pre>
  
  <p></p>
  
  <p>and here is the dependency POM file:</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.citi.mifid2&lt;/groupId&gt;
  &lt;artifactId&gt;m2tr-commons&lt;/artifactId&gt;
  
  &lt;version&gt;1.4.0-SNAPSHOT&lt;/version&gt;
  
  &lt;name&gt;m2tr-commons&lt;/name&gt;
  &lt;packaging&gt;jar&lt;/packaging&gt;
  
  &lt;parent&gt;
      &lt;groupId&gt;com.citi.mifid2&lt;/groupId&gt;
      &lt;artifactId&gt;m2tr&lt;/artifactId&gt;
  
      &lt;version&gt;1.4.0-SNAPSHOT&lt;/version&gt;
  
      &lt;relativePath&gt;../pom.xml&lt;/relativePath&gt;
  &lt;/parent&gt;
  
  &lt;dependencies&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.apache.storm&lt;/groupId&gt;
          &lt;artifactId&gt;storm-core&lt;/artifactId&gt;
          &lt;type&gt;test-jar&lt;/type&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.mockito&lt;/groupId&gt;
          &lt;artifactId&gt;mockito-all&lt;/artifactId&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.mockito&lt;/groupId&gt;
          &lt;artifactId&gt;mockito-core&lt;/artifactId&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  
  &lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
              &lt;version&gt;${maven.compiler.plugin.version}&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;source&gt;${java.version}&lt;/source&gt;
                  &lt;target&gt;${java.version}&lt;/target&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p></p>
  
  <p>I do see the dependency repository created for M2TR-COMMONS which the dependent project should be able to find, but it complains.For other projects which look for this dependency(M2TR-COMMONS), they also complain .</p>
  
  <p>full error stack:</p>
  
  <pre><code>[23:10:43][Step 2/4] [ERROR] Failed to execute goal on project m2tr-csheq-domain: Could not resolve dependencies for project com.citi.mifid2:m2tr-csheq-domain:jar:1.4.0-SNAPSHOT: Failed to collect dependencies for [com.citi.mifid2:m2tr-commons:jar:1.4.0-SNAPSHOT (compile), org.apache.storm:storm-core:jar:1.1.0 (provided), com.citi.mifid2:storm-commons:jar:1.4.0-SNAPSHOT (compile), com.citi.mifid2:commons:jar:1.4.0-SNAPSHOT (compile), org.apache.kafka:kafka-clients:jar:0.11.0.2 (compile), com.esotericsoftware:kryo:jar:4.0.0 (provided), junit:junit:jar:4.12 (test), com.citi.mifid2:test-utils:jar:1.4.0-SNAPSHOT (test)]: Failed to read artifact descriptor for com.citi.mifid2:m2tr-commons:jar:1.4.0-SNAPSHOT: Could not find artifact com.citi.mifid2:m2tr:pom:1.4.0-SNAPSHOT in ear-maven-teamdev (https://www.artifactrepository.citigroup.net/artifactory/list/maven-teamdev/) -&gt; [Help 1]
  [23:10:43][Step 2/4] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project m2tr-csheq-domain: Could not resolve dependencies for project com.citi.mifid2:m2tr-csheq-domain:jar:1.4.0-SNAPSHOT: Failed to collect dependencies for [com.citi.mifid2:m2tr-commons:jar:1.4.0-SNAPSHOT (compile), org.apache.storm:storm-core:jar:1.1.0 (provided), com.citi.mifid2:storm-commons:jar:1.4.0-SNAPSHOT (compile), com.citi.mifid2:commons:jar:1.4.0-SNAPSHOT (compile), org.apache.kafka:kafka-clients:jar:0.11.0.2 (compile), com.esotericsoftware:kryo:jar:4.0.0 (provided), junit:junit:jar:4.12 (test), com.citi.mifid2:test-utils:jar:1.4.0-SNAPSHOT (test)]
  [23:10:43][Step 2/4]    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210)
  [23:10:43][Step 2/4]    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:117)
  [23:10:43][Step 2/4]    at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258)
  [23:10:43][Step 2/4]    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201)
  [23:10:43][Step 2/4]    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
  [23:10:43][Step 2/4]    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
  [23:10:43][Step 2/4]    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
  [23:10:43][Step 2/4]    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
  [23:10:43][Step 2/4]    at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
  [23:10:43][Step 2/4]    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
  [23:10:43][Step 2/4]    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
  [23:10:43][Step 2/4]    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
  [23:10:43][Step 2/4]    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
  [23:10:43][Step 2/4]    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
  [23:10:43][Step 2/4]    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
  [23:10:43][Step 2/4]    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  [23:10:43][Step 2/4]    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  [23:10:43][Step 2/4]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  [23:10:43][Step 2/4]    at java.lang.reflect.Method.invoke(Method.java:498)
  [23:10:43][Step 2/4]    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
  [23:10:43][Step 2/4]    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
  [23:10:43][Step 2/4]    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
  [23:10:43][Step 2/4]    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
  [23:10:43][Step 2/4] Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for project com.citi.mifid2:m2tr-csheq-domain:jar:1.4.0-SNAPSHOT: Failed to collect dependencies for [com.citi.mifid2:m2tr-commons:jar:1.4.0-SNAPSHOT (compile), org.apache.storm:storm-core:jar:1.1.0 (provided), com.citi.mifid2:storm-commons:jar:1.4.0-SNAPSHOT (compile), com.citi.mifid2:commons:jar:1.4.0-SNAPSHOT (compile), org.apache.kafka:kafka-clients:jar:0.11.0.2 (compile), com.esotericsoftware:kryo:jar:4.0.0 (provided), junit:junit:jar:4.12 (test), com.citi.mifid2:test-utils:jar:1.4.0-SNAPSHOT (test)]
  [23:10:43][Step 2/4]    at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:158)
  [23:10:43][Step 2/4]    at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:185)
  [23:10:43][Step 2/4]    ... 22 more
  [23:10:43][Step 2/4] Caused by: org.sonatype.aether.collection.DependencyCollectionException: Failed to collect dependencies for [com.citi.mifid2:m2tr-commons:jar:1.4.0-SNAPSHOT (compile), org.apache.storm:storm-core:jar:1.1.0 (provided), com.citi.mifid2:storm-commons:jar:1.4.0-SNAPSHOT (compile), com.citi.mifid2:commons:jar:1.4.0-SNAPSHOT (compile), org.apache.kafka:kafka-clients:jar:0.11.0.2 (compile), com.esotericsoftware:kryo:jar:4.0.0 (provided), junit:junit:jar:4.12 (test), com.citi.mifid2:test-utils:jar:1.4.0-SNAPSHOT (test)]
  [23:10:43][Step 2/4]    at org.sonatype.aether.impl.internal.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:258)
  [23:10:43][Step 2/4]    at org.sonatype.aether.impl.internal.DefaultRepositorySystem.collectDependencies(DefaultRepositorySystem.java:308)
  [23:10:43][Step 2/4]    at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:150)
  [23:10:43][Step 2/4]    ... 23 more
  [23:10:43][Step 2/4] Caused by: org.sonatype.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for com.citi.mifid2:m2tr-commons:jar:1.4.0-SNAPSHOT
  [23:10:43][Step 2/4]    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:331)
  [23:10:43][Step 2/4]    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:186)
  [23:10:43][Step 2/4]    at org.sonatype.aether.impl.internal.DefaultDependencyCollector.process(DefaultDependencyCollector.java:412)
  [23:10:43][Step 2/4]    at org.sonatype.aether.impl.internal.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:240)
  [23:10:43][Step 2/4]    ... 25 more
  [23:10:43][Step 2/4] Caused by: org.apache.maven.model.resolution.UnresolvableModelException: Could not find artifact com.citi.mifid2:m2tr:pom:1.4.0-SNAPSHOT in ear-maven-teamdev (https://www.artifactrepository.citigroup.net/artifactory/list/maven-teamdev/)
  [23:10:43][Step 2/4]    at org.apache.maven.repository.internal.DefaultModelResolver.resolveModel(DefaultModelResolver.java:126)
  [23:10:43][Step 2/4]    at org.apache.maven.model.building.DefaultModelBuilder.readParentExternally(DefaultModelBuilder.java:813)
  [23:10:43][Step 2/4]    at org.apache.maven.model.building.DefaultModelBuilder.readParent(DefaultModelBuilder.java:664)
  [23:10:43][Step 2/4]    at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:310)
  [23:10:43][Step 2/4]    at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:232)
  [23:10:43][Step 2/4]    at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:322)
  [23:10:43][Step 2/4]    ... 28 more
  [23:10:43][Step 2/4] Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not find artifact com.citi.mifid2:m2tr:pom:1.4.0-SNAPSHOT in ear-maven-teamdev (https://www.artifactrepository.citigroup.net/artifactory/list/maven-teamdev/)
  [23:10:43][Step 2/4]    at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538)
  [23:10:43][Step 2/4]    at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
  [23:10:43][Step 2/4]    at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:193)
  [23:10:43][Step 2/4]    at org.apache.maven.repository.internal.DefaultModelResolver.resolveModel(DefaultModelResolver.java:122)
  [23:10:43][Step 2/4]    ... 33 more
  [23:10:43][Step 2/4] Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not find artifact com.citi.mifid2:m2tr:pom:1.4.0-SNAPSHOT in ear-maven-teamdev (https://www.artifactrepository.citigroup.net/artifactory/list/maven-teamdev/)
  [23:10:43][Step 2/4]    at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:947)
  [23:10:43][Step 2/4]    at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:941)
  [23:10:43][Step 2/4]    at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:669)
  [23:10:43][Step 2/4]    at org.sonatype.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:60)
  [23:10:43][Step 2/4]    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  [23:10:43][Step 2/4]    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  [23:10:43][Step 2/4]    at java.lang.Thread.run(Thread.java:748)
  [23:10:43][Step 2/4] [ERROR] 
  [23:10:43][Step 2/4] [ERROR] 
  [23:10:43][Step 2/4] [ERROR] For more information about the errors and possible solutions, please read the following articles:
  [23:10:43][Step 2/4] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
  </code></pre>
  
  <p>Thanks in advance.</p>