Non-resolvable parent POM: Could not find artifact

Henry Harris picture Henry Harris · Jul 26, 2012 · Viewed 72.4k times · Source

I have recently looked into Gorilla Logic's open source testing tool and need to make some changes in order to be able to log something to the console. I have checked out the code out of source control for the "Android Agent" and now I am looking to build a new .jar agent file. I need to use the
mvn clean install to build the .jar file. When I try to build it the command line is giving this error
Non-resolvable parent POM: Could not find artifact com.gorillalogic.monkeytalk:monkeytalk:pom:1.0.12-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 6, column 10 -> [Help 2]

Can anyone help me with this or let me know what this means? Thanks. :) I don't understand maven and just want to know what it means.

Here is the pom.xml file line 6-10

<parent> 
<groupId>com.gorillalogic.monkeytalk</groupId>
    <artifactId>monkeytalk</artifactId>
    <version>1.0.12-SNAPSHOT</version>
    <relativePath>/Users/henry/Desktop/monkeytalk-agent-android/parent/pom.xml</relativePath>
</parent>

Answer

Karthik picture Karthik · Jul 26, 2012

This project seems to be module project under another maven project "moneytalk". As this project can inherit properties, dependency management information, plugin information from the parent project, maven tries to read the parent pom.xml. If the parent pom.xml is not available at the specified location, maven build will fail.

One option is to checkout all the projects including the parent project. Other option is to place the pom.xml of the parent project at the required location (in your case /Users/henry/Desktop/monkeytalk-agent-android/parent/pom.xml