进行 Jenkins 插件开发,需要用到 jenkins 的一些类库,在 maven 中央仓库中,这些依赖基本上都不存在。

他们特定存在于 jenkins 自己的 repo 中,下面是在公司自有的 nexus 中添加 jenkins 仓库的步骤:

jenkins 官方 repo 的地址为: https://repo.jenkins-ci.org/public/
对应的 proxy 地址为:https://repo.jenkins-ci.org/releases/

我们在 nexus 中添加代理需要用到 https://repo.jenkins-ci.org/releases/

Nexus 添加 Jenkins repo_插件开发

Nexus 添加 Jenkins repo_插件开发_02

Nexus 添加 Jenkins repo_maven_03

最后,保存!


(END)