pom.xml无法解析父级吗? [英] pom.xml Can't resolve parent?
问题描述
我是maven的菜鸟",并且正在为发现的开源项目运行mvn全新安装.我试图得到它来建立一个jar文件.当我以应该"的方式运行它时,它将起作用.我收到此错误...
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]
对于pom.xml文件@第6-10行,我有...
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?
提前谢谢!
推荐答案
您缺少父项目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
或者该父对象本身就是一个项目,您必须下载它并自己调用mvn install
.
Or that parent is a project into itself and you must download it and call mvn install
on it yourself.
这篇关于pom.xml无法解析父级吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!