title: Maven doesn't resolve local parent POM
body: <p>This is an interesting problem and I can't tell if I am doing something wrong or it's a limitation of Maven.</p>
  
  <p>The simplest version of the scenario is that there is a parent POM, single child POM, and an aggregation POM. The aggregation POM is merely to chain the modules together.</p>
  
  <p>When I install the aggregation POM, it doesn't find out the dependencies of the child POM on the parent POM.  I would prefer not to have a relative path and should be possible from my understanding of Maven artifacts.</p>
  
  <p>Any insight would be greatly appreciated.  Thanks.</p>
  
  <p>This is the uber parent (never mind that there is nothing in it)</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;project&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;my.group&lt;/groupId&gt;
      &lt;artifactId&gt;parent-uber&lt;/artifactId&gt;
      &lt;version&gt;0.0.2-SNAPSHOT&lt;/version&gt;
      &lt;packaging&gt;pom&lt;/packaging&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>This is the child:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;parent&gt;
          &lt;groupId&gt;my.group&lt;/groupId&gt;
          &lt;artifactId&gt;parent-uber&lt;/artifactId&gt;
          &lt;version&gt;0.0.2-SNAPSHOT&lt;/version&gt;
      &lt;/parent&gt;
  
      &lt;groupId&gt;my.group&lt;/groupId&gt;
      &lt;artifactId&gt;parent-java&lt;/artifactId&gt;
      &lt;packaging&gt;pom&lt;/packaging&gt;
  
      &lt;properties&gt;
      &lt;/properties&gt;
  
      &lt;build&gt;
          &lt;!-- To define the plugin version in your parent POM --&gt;
          &lt;pluginManagement&gt;
              &lt;plugins&gt;
                  &lt;!-- All projects that extend this should have valid JavaDoc built--&gt;
                  &lt;plugin&gt;
                      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                      &lt;artifactId&gt;maven-javadoc-plugin&lt;/artifactId&gt;
                      &lt;executions&gt;
                          &lt;execution&gt;
                              &lt;id&gt;attach-javadocs&lt;/id&gt;
                              &lt;goals&gt;
                                  &lt;goal&gt;jar&lt;/goal&gt;
                              &lt;/goals&gt;
                          &lt;/execution&gt;
                      &lt;/executions&gt;
                  &lt;/plugin&gt;
              &lt;/plugins&gt;
          &lt;/pluginManagement&gt;
      &lt;/build&gt;
  
      &lt;dependencyManagement&gt;
          &lt;dependencies&gt;
              &lt;dependency&gt;
                  &lt;groupId&gt;junit&lt;/groupId&gt;
                  &lt;artifactId&gt;junit&lt;/artifactId&gt;
                  &lt;version&gt;4.11&lt;/version&gt;
                  &lt;scope&gt;test&lt;/scope&gt;
              &lt;/dependency&gt;    
              &lt;dependency&gt;
                  &lt;groupId&gt;log4j&lt;/groupId&gt;
                  &lt;artifactId&gt;log4j&lt;/artifactId&gt;
                  &lt;version&gt;1.2.17&lt;/version&gt;
              &lt;/dependency&gt;    
              &lt;dependency&gt;
                  &lt;groupId&gt;commons-lang&lt;/groupId&gt;
                  &lt;artifactId&gt;commons-lang&lt;/artifactId&gt;
                  &lt;version&gt;2.1&lt;/version&gt;
              &lt;/dependency&gt;    
              &lt;dependency&gt;
                  &lt;groupId&gt;commons-io&lt;/groupId&gt;
                  &lt;artifactId&gt;commons-io&lt;/artifactId&gt;
                  &lt;version&gt;2.4&lt;/version&gt;
              &lt;/dependency&gt;
          &lt;/dependencies&gt;
      &lt;/dependencyManagement&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>And for completeness, the aggregator:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;project&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
      &lt;parent&gt;
          &lt;groupId&gt;my.group&lt;/groupId&gt;
          &lt;artifactId&gt;_maven-integration-aggregator&lt;/artifactId&gt;
          &lt;version&gt;0.1-SNAPSHOT&lt;/version&gt;
          &lt;relativePath&gt;../pom.xml&lt;/relativePath&gt; &lt;!-- parent aggregator --&gt;
      &lt;/parent&gt;
  
      &lt;groupId&gt;my.group.maven&lt;/groupId&gt;
      &lt;artifactId&gt;_poms-aggregator&lt;/artifactId&gt;
      &lt;version&gt;0.1-SNAPSHOT&lt;/version&gt;
      &lt;packaging&gt;pom&lt;/packaging&gt;
  
      &lt;modules&gt;
          &lt;module&gt;parent-uber&lt;/module&gt;
          &lt;module&gt;parent-java&lt;/module&gt;
      &lt;/modules&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>The error:</p>
  
  <pre><code>org.apache.maven.model.resolution.UnresolvableModelException: Could not find artifact my.group:parent-uber:pom:0.0.2-SNAPSHOT
      at org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectModelResolver.java:159)
      at org.apache.maven.model.building.DefaultModelBuilder.readParentExternally(DefaultModelBuilder.java:817)
      at org.apache.maven.model.building.DefaultModelBuilder.readParent(DefaultModelBuilder.java:669)
      at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:307)
      at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:411)
      at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:380)
      at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:496)
      at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:380)
      at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:344)
      at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:637)
      at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:586)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:229)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
      at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
      at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
  Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not find artifact my.group:parent-uber:pom:0.0.2-SNAPSHOT
      at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:459)
      at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:262)
      at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:239)
      at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:295)
      at org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectModelResolver.java:155)
      ... 23 more
  Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact my.parent:parent-uber:pom:0.0.2-SNAPSHOT
      at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:449)
      ... 27 more
  </code></pre>