我正在尝试使用以下Maven pom获取JavaHG 0.6快照:
<dependencies>
<dependency>
<groupId>com.aragost.javahg</groupId>
<artifactId>javahg</artifactId>
<version>0.6-SNAPSHOT</version>
</dependency>
</dependencies>
<repositories>
<repository>
<id>sonatype-ossrh</id>
<name>Sonatype Open Source Software Repository Hosting</name>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</repository>
</repositories>
这使得构建失败并出现以下错误:
Could not find artifact com.aragost.javahg:javahg-parent:pom:0.6-SNAPSHOT in sonatype-ossrh (https://oss.sonatype.org/content/repositories/snapshots/) -> [Help 1]
我认为这是因为找不到0.6-SNAPSHOT https://oss.sonatype.org/content/repositories/snapshots/com/aragost/javahg/javahg-parent/
有谁知道如何让它发挥作用?
答案 0 :(得分:2)
不幸的是,最近的版本目前并不在maven中。可以在本地构建。 该主题包含一些细节:https://bitbucket.org/mercurialeclipse/main/issue/424/plugin-readmemd-information-out-of-date
javahg-parent
0.6
标记
mvn install
调用javahg-parent
,然后再为其他存储库调用