Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Non-resolvable parent POM: Could not find artifact

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>
like image 436
Henry Harris Avatar asked Jul 26 '12 20:07

Henry Harris


People also ask

Where does Maven look for parent pom?

If not specified, it defaults to ../pom. xml . Maven looks for the parent POM first in this location on the filesystem, then the local repository, and lastly in the remote repo. relativePath allows you to select a different location, for example when your structure is flat, or deeper without an intermediate parent POM.

What is parent tag in POM XML?

A parent pom. xml file (or super POM) in Maven is used to structure the project in order to avoid redundancies and duplicate configurations by using an inheritance between different pom. xml files. If any dependency or properties are configured in both - parent and child - pom.

What is POM XML?

What is a POM? A Project Object Model or POM is the fundamental unit of work in Maven. It is an XML file that contains information about the project and configuration details used by Maven to build the project. It contains default values for most projects.


1 Answers

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

like image 117
Karthik Avatar answered Sep 19 '22 18:09

Karthik