我如何让jenkins和m2eclipse共享同一个Maven存储库 [英] How do I let jenkins and m2eclipse share the same maven repository

查看:272
本文介绍了我如何让jenkins和m2eclipse共享同一个Maven存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何配置m2eclipse(用于eclipse的maven插件)以使用也用于jenkins的集中式maven存储库.

How do I configure m2eclipse ( maven plugin for eclipse ) to use a centralized maven repository that is also used in jenkins.

m2eclipse中的默认用户设置类似于"home/user/.m2" 我们该如何做类似"ssh user@192.168.1.200:/var/lib/jenkins/.m2"的事情?

The default user settings in m2eclipse is something like "home/user/.m2" How can we do something like "ssh user@192.168.1.200:/var/lib/jenkins/.m2"?

推荐答案

一种简单易行的方法是使用存储库管理器. Sonatype的 Nexus 似乎最受欢迎,但还有其他一些(例如JFrog Artifactory和Apache Archiva).它们作为HTTP服务器运行,您可以将Maven配置(本地和Jenkins)更改为

A neat and easy way to do it is to use a repository manager. Sonatype's Nexus seems to be the most popular, but there are others (e.g. JFrog Artifactory and Apache Archiva). They run as HTTP servers, and you can change your Maven configuration (both locally and for Jenkins) to use it as a mirror for any Maven repository (e.g. the Central Maven repo), or use it to host your own repositories.

这篇关于我如何让jenkins和m2eclipse共享同一个Maven存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆