2017-02-18 58 views
0

我已經嘗試建立0.7及更高版本,但它總是失敗,出現以下消息:我該如何構建javahg?

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

最新版本[Maven Central]中爲0.4(http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.aragost.javahg%22%20AND%20a%3A%22javahg-parent%22) – khmarbaise

回答

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 
相關問題