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

想使用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>

 

转载于:https://my.oschina.net/u/1760791/blog/647650

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值