nexus作为maven的私服
来源:互联网 发布:u型耳夹淘宝 编辑:程序博客网 时间:2024/06/08 01:04
使用nexus作为maven的私服
私服是架设在局域网的一种特殊的远程仓库,目的是代理远程仓库及部署第三方构件。有了私服之后,当 Maven 需要下载构件时,直接请求私服,私服上存在则下载到本地仓库;否则,私服请求外部的远程仓库,将构件下载到私服,再提供给本地仓库下载。
Nexus 的仓库分为这么几类:
hosted 类型的仓库,内部项目的发布仓库
releases 内部的模块中release模块的发布仓库
snapshots 发布内部的SNAPSHOT模块的仓库
3rd party 第三方依赖的仓库,这个数据通常是由内部人员自行下载之后发布上去
proxy 类型的仓库,从远程中央仓库中寻找数据的仓库
group 类型的仓库,组仓库用来方便我们开发人员进行设置的仓库
为所有仓库配置一个镜像仓库,镜像仓库的地址即私服的地址,修改maven中的setting.xml配置文件,如下:
<mirrors> <mirror> <id>central</id> <mirrorOf>*</mirrorOf> <name>central-mirror</name> <url>http://10.10.18.14:8081/nexus/content/groups/public/</url> </mirror></mirrors><profiles> <profile> <id>central-repos</id> <repositories> <repository> <id>central</id> <name>Central</name> <url>http://central</url> <releases><enable>true</enable></releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> </repositories> </profile></profiles>
阅读全文
0 0
- nexus作为maven的私服
- maven的私服搭建 Maven Nexus
- maven探究四:在maven中配置nexus作为私服仓库
- 用nexus建立maven的私服
- 使用nexus做Maven的私服
- maven nexus 的私服搭建
- maven项目的nexus搭建私服
- 【Maven】私服搭建-Nexus的安装
- Maven 私服的搭建(Nexus)
- maven nexus私服配置
- Maven+Nexus私服搭建
- maven搭建私服nexus
- Maven Nexus私服搭建
- maven nexus 搭建私服
- Maven nexus私服安装
- maven nexus私服搭建
- maven nexus私服搭建
- 【MAVEN】配置私服Nexus
- bzoj 1978(dp)
- 线性表
- group by用法
- 总结一个人工智能(AI)产品设计框架
- HTTP POST方法调用
- nexus作为maven的私服
- eclipse使用心得体会
- Python学习—matplotlib使用—plt.tick_params中which用法
- [bzoj3990][SDOI2015]排序 搜索
- Linux 查看端口占用网速方法
- 每日一练-20171026
- 顺序栈的定义和基本算法
- <四>Linux文件权限与属性详解--chattr & lsattr
- 数组中重复的数字(O(1))