title: Non-resolvable parent POM for Could not find artifact and 'parent.relativePath' points at wrong local POM
body: <p>I am new to maven.</p>
  
  <p>I have one project which I try to build with the maven3.</p>
  
  <p>When I run the command <code>mvn -X clean install</code> I got the error.</p>
  
  <pre><code>[root@localhost]# mvn -X clean install
  Apache Maven 3.0.4 (r1232337; 2012-01-17 14:14:56+0530)
  Maven home: /usr/local/maven
  Java version: 1.6.0_24, vendor: Sun Microsystems Inc.
  Java home: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre
  Default locale: en_US, platform encoding: UTF-8
  OS name: "linux", version: "2.6.32-279.9.1.el6.x86_64", arch: "amd64", family: "unix"
  [INFO] Error stacktraces are turned on.
  [DEBUG] Reading global settings from /usr/local/maven/conf/settings.xml
  [DEBUG] Reading user settings from /root/.m2/settings.xml
  [DEBUG] Using local repository at /root/.m2/repository
  [DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10 for /root/.m2/repository
  [INFO] Scanning for projects...
  [DEBUG] Could not find metadata com.test.ctrl:ctrl-build:0.0.17-SNAPSHOT/maven-metadata.xml in local (/root/.m2/repository)
  [ERROR] The build could not read 1 project -&gt; [Help 1]
  org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
  [FATAL] Non-resolvable parent POM for org.openstack:openstack-rhel-rpms:2012.1-SNAPSHOT: Could not find artifact com.test.ctrl:ctrl-build:pom:0.0.17-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ org.openstack:openstack-rhel-rpms:2012.1-SNAPSHOT, /root/test/devenv/openstack-rhel/pom.xml, line 8, column 13
  
          at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:363)
          at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:636)
          at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:585)
          at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:234)
          at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
          at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
          at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
          at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:616)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
          at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
          at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
  [ERROR]
  [ERROR]   The project org.openstack:my-tar:2012.1-SNAPSHOT (/root/test/devenv/mytar/pom.xml) has 1 error
  [ERROR]     Non-resolvable parent POM for org.openstack:openstack-rhel-rpms:2012.1-SNAPSHOT: Could not find artifact com.test.ctrl:ctrl-build:pom:0.0.17-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ org.openstack:openstack-rhel-rpms:2012.1-SNAPSHOT, /root/test/devenv/openstack-rhel/pom.xml, line 8, column 13 -&gt; [Help 2]
  org.apache.maven.model.resolution.UnresolvableModelException: Could not find artifact com.test.ctrl:ctrl-build:pom:0.0.17-SNAPSHOT
          at org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectModelResolver.java:159)
          at org.apache.maven.model.building.DefaultModelBuilder.readParentExternally(DefaultModelBuilder.java:813)
          at org.apache.maven.model.building.DefaultModelBuilder.readParent(DefaultModelBuilder.java:664)
          at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:310)
          at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:232)
          at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:410)
          at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:379)
          at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:343)
          at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:636)
          at org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:585)
          at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:234)
          at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
          at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
          at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
          at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:616)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
          at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
          at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
  Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not find artifact com.test.ctrl:ctrl-build:pom:0.0.17-SNAPSHOT
          at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538)
          at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
          at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:193)
          at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:286)
          at org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectModelResolver.java:155)
          ... 22 more
  Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not find artifact com.test.ctrl:ctrl-build:pom:0.0.17-SNAPSHOT
          at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:528)
          ... 26 more
  [ERROR]
  [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/ProjectBuildingException
  [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
  </code></pre>
  
  <p>I check the <code>pom.xml</code> but cant understand what was the problem.
  Some lines from my <code>pom.xml</code> is as below.</p>
  
  <pre><code>  1 &lt;?xml version="1.0"?&gt;
    2 &lt;project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    3     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
    4   &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    5
    6 &lt;parent&gt;
    7     &lt;groupId&gt;org.openstack&lt;/groupId&gt;
    8     &lt;artifactId&gt;openstack-rhel-rpms&lt;/artifactId&gt;
    9     &lt;version&gt;2012.1-SNAPSHOT&lt;/version&gt;
   10     &lt;relativePath&gt;../openstack-rhel&lt;/relativePath&gt;
   11 &lt;/parent&gt;
   12
   13     &lt;groupId&gt;org.openstack&lt;/groupId&gt;
   14     &lt;artifactId&gt;my-tar&lt;/artifactId&gt;
   15     &lt;version&gt;2012.1-SNAPSHOT&lt;/version&gt;
   16   &lt;packaging&gt;pom&lt;/packaging&gt;
   17   &lt;name&gt;my tar&lt;/name&gt;
   18
  </code></pre>
  
  <p>I also check the solution on some question in stackoverflow like <a href="https://stackoverflow.com/questions/11677734/non-resolvable-parent-pom-could-not-find-artifact">Non-resolvable parent POM: Could not find artifact</a> but couldnt help to solve the problem.</p>
  
  <p>If you need more information related to this question, let me know.</p>