我已尝试构建0.7及更高版本,但它始终失败并显示以下消息:
The build could not read 1 project -> [Help 1]
The project com.aragost.javahg:javahg:0.7 (/home/<user>/DEV/NoBackup/javahg/pom.xml) has 1 error
Non-resolvable parent POM: Failure to find com.aragost.javahg:javahg-parent:pom:0.6 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 6, column 10 -> [Help 2]
我该如何解决?
答案 0 :(得分:1)
Project引用了父级,该父级应该可以在本地父目录中访问:
<parent>
<groupId>com.aragost.javahg</groupId>
<artifactId>javahg-parent</artifactId>
<version>0.6</version>
<relativePath>../javahg-parent</relativePath>
</parent>
请在您的环境中添加https://bitbucket.org/aragost/javahg-parent,因此您的结构应类似于:
/home/<user>/DEV/NoBackup/javahg
/home/<user>/DEV/NoBackup/javahg-parent - with proper version