0

我已尝试构建 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]

我如何解决它?

4

1 回答 1

1

项目具有对应在本地父目录中访问的父级的引用:

<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
于 2017-02-18T20:25:13.800 回答