您的位置:首页 > 其它

maven构建Jenkins ci plugin无法下载资源解决方式

2016-03-26 00:00 477 查看
摘要: 想使用git params plugin实现参数化构建,但是旧版的插件对于ssh连接git存在bug,不能使用git tag。需要自己使用快照snapshot版的插件,下载编译源码编译是遇到了一些错误

想使用git params plugin实现参数化构建,但是旧版的插件对于ssh连接git存在bug,不能使用git tag。需要自己使用快照snapshot版的插件,当然这个问题在jenkins2.0+版本中不会有,下载编译源码编译是遇到了一些错误

错误大致是这样的:

Non-resolvable parent POM for org.jenkins-ci.tools:git-parameter:0.4.1-SNAPSHOT: Failure to find org.jenkins-ci.plugins:plugin:pom:1.580.2 in http://localhost:8081/nexus/content/groups/public/ was cached in the local repository,
resolution will not be reattempted until the update interval of nexusMirror has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 3, column 10

@


通过自己的nexus仓库无法获取到

<parent>

<groupId>org.jenkins-ci.plugins</groupId>

<artifactId>plugin</artifactId>

<!-- Baseline Jenkins version you use to build and test the plugin. Users

must have this version or newer to run. -->

<version>1.580.2</version>

</parent>

在setting文件的mirrors节点下增加一个mirror指向http://repo.jenkins-ci.org/public

<mirrors>
<mirror>
<mirrorOf>m.g.o-public</mirrorOf>
<url>http://repo.jenkins-ci.org/public</url>
<id>jenkins-ci.org</id>
<name>Jenkins CI Public</name>
</mirror>
</mirrors>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  Jenkins