Maven系列(六)图解nexus 私有仓库

1、下载并且解压缩 nexus http://www.sonatype.org/nexus/

2、将bin添加到环境变量

 
Maven系列(六)图解nexus 私有仓库
 cmd


Maven系列(六)图解nexus 私有仓库
 选中一个操行项

刚刚安装 没有安装服务 所以先安装服务 : 输入 nexus install

安装完成时候 运行 nexus start 启动

Maven系列(六)图解nexus 私有仓库

这个错误是因为没有修改对正确的java路径


Maven系列(六)图解nexus 私有仓库
 

启动成功

在浏览器输入http://localhost:8081/nexus/index.html 

 
Maven系列(六)图解nexus 私有仓库
 

进入nexus的后台管理 点击log in 登录 账户 :admin 密码:admin123

点击仓库

1、host的仓库。内部项目的发布仓库


Maven系列(六)图解nexus 私有仓库
 proxy的仓库。从远程中央仓库中寻找数据的仓库

 添加一个新的仓库

<!--[if !supportLists]-->点击add 选中 Hosted Repository 


Maven系列(六)图解nexus 私有仓库


Maven系列(六)图解nexus 私有仓库

<!--[if !supportLists]-->接下来需要打开仓库的权限


Maven系列(六)图解nexus 私有仓库
 开启权限


Maven系列(六)图解nexus 私有仓库

<!--[if !supportLists]-->下面建立一个角色来操作该仓库

 
Maven系列(六)图解nexus 私有仓库
 
Maven系列(六)图解nexus 私有仓库
 


Maven系列(六)图解nexus 私有仓库
 
Maven系列(六)图解nexus 私有仓库
 点save

<!--[if !supportLists]-->下面新建一个用户


Maven系列(六)图解nexus 私有仓库
 如此私用工厂就配置完毕了怎么使用呢?首先我们在pom中 加入工厂的配置

Maven系列(六)图解nexus 私有仓库
 把后面这个path拷贝下来


Maven系列(六)图解nexus 私有仓库
 

<!--[if !supportLists]-->3、<!--[endif]-->修改mvansettings.xml文件


Maven系列(六)图解nexus 私有仓库
 

clean deploy

这样就完成部署了