1

I am a "noob" with maven and I am running a mvn clean install for a open source project I found. I am trying to get it to build a jar file. When I run it the way it "supposedly" is going to work. I get 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]

For the pom.xml file @ line 6-10 I have...

<parent>
    <groupId>com.gorillalogic.monkeytalk</groupId>
    <artifactId>monkeytalk</artifactId>
    <version>1.0.12-SNAPSHOT</version>
</parent>

Is there a step I am missing? I can give more code if you need it?

Thanks in advance!

Henry Harris
  • 620
  • 4
  • 7
  • 18

3 Answers3

5

You are missing the parent projects pom.

Most likely your folder structure looks like this:

.../moneytalk_Foo/pom.xml
.../moneytalk_Foo/someFolder

but it should look like this:

.../pom.xml
.../moneytalk_Foo/pom.xml
.../moneytalk_Foo/someFolder

Or that parent is a project into itself and you must download it and call mvn install on it yourself.

Angelo Fuchs
  • 9,825
  • 1
  • 35
  • 72
1

the parent project maybe not installed yet, try run the parent project "monkeytalk" as Maven install.

how to install the parent project in eclipse

legoscia
  • 39,593
  • 22
  • 116
  • 167
theone
  • 11
  • 1
0

Not sure if this is a cure all for everyone seeing this, but for me it was because my maven settings.xml file was not being found. Maven uses this file to locate remote repos for downloading SNAPSHOT files so if it can't find the settings.xml file then parent.relativePath is essentially undefined. Pretty crappy error message for this IMO, it should dump the value of parent.relativePath to give some indication of an undefined var.

slartibartfast
  • 528
  • 4
  • 8