我有我的Maven项目设置为1个外壳项目和4个子模块。当我尝试构建shell时。我得到:Maven:不可解析的父POM
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project module1:1.0_A0 (C:\module1\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Failure to find shell:pom:1.0_A0 in http://nyhub1.ny.ssmb.com:8081/nexus/content/repositories/JBoss/ was cached in the local repository, resolution will not be reattempted until the update interval of jboss has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 5, column 11 -> [Help 2]
如果我尝试构建一个单独的模块,我得到相同的错误只替换模块1,无论它是什么模块。
让他们在他们的poms中引用父项。
<parent>
<artifactId>shell</artifactId>
<groupId>converter</groupId>
<version>1.0_A0</version>
</parent>
这里是壳聚甲醛的相关部分:
仅供参考<groupId>converter</groupId>
<artifactId>shell</artifactId>
<version>1.0_A0</version>
<packaging>pom</packaging>
<name>shell</name>
<modules>
<module>module1</module>
<module>module2</module>
<module>module3</module>
<module>module4</module>
</modules>
是的。使用Maven需要你知道你做了什么,试验和错误不会让你走得很远。另一方面有几个很好的参考。这是[one](http://www.sonatype.com/books/mvnref-book/reference/)。 –
因此,您在' '之下添加了这个' .. relativePath>'? –
octavian
我指出它到我的relativePath值默认值maven放在那里.. – Will