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

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

2、将bin添加到环境变量

 

 cmd



 选中一个操行项

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

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

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



 

启动成功

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

 

 

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

点击仓库

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



 proxy的仓库。从远程中央仓库中寻找数据的仓库

 添加一个新的仓库

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



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



 开启权限


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

 

 

 



 

 点save

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



 如此私用工厂就配置完毕了怎么使用呢?首先我们在pom中 加入工厂的配置


 把后面这个path拷贝下来



 

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



 

clean deploy

这样就完成部署了

 

 

猜你喜欢

转载自liuyieyer.iteye.com/blog/2067118