我正在尝试使用maven从源代码构建xunit插件。我收到以下错误:
[ERROR] The project org.jenkins-ci.plugins:xunit:1.53-SNAPSHOT (/Users/admin/Downloads/xunit-plugin-master/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Could not find artifact org.jenkins-ci.plugins:plugin:pom:1.410 in guice-maven (http://guice-maven.googlecode.com/svn/trunk) and 'parent.relativePath' points at wrong local POM @ line 4, column 13 -> [Help 2]
如何修复pom.xml
?
答案 0 :(得分:0)
因为它说它无法从在线存储库中获取工件。 尝试配置另一个repo来获取工件。
<settings>
<profiles>
<profile>
<id>myprofile</id>
<repositories>
<repository>
<id>my-repo2</id>
<name>your custom repo</name>
<url>http://jarsm2.dyndns.dk</url>
</repository>
</repositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>myprofile</activeProfile>
</activeProfiles>
</settings>