Non-resolvable parent POM: Could not find artifact

北城余情 提交于 2019-12-01 14:44:04

问题


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>

回答1:


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



来源:https://stackoverflow.com/questions/11677734/non-resolvable-parent-pom-could-not-find-artifact

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!