Maven私服

2019-01-07  本文已影响9人  joy_蓝蜘蛛

拉取镜像(这里使用官方镜像,基于centos):
$ docker pull sonatype/nexus3
启动:

$ docker run -d -p 8081:8081 -p 8082:8082 -p 8083:8083 -p 8084:8084 --name nexus3 -v /opt/nexus-data:/nexus-data sonatype/nexus3 

映射的4个端口用途:
8081:nexus3网页端
8082:docker(hosted)私有仓库,可以pull和push
8083:docker(proxy)代理远程仓库,只能pull
8084:docker(group)私有仓库和代理的组,只能pull

image.png

三、上传jar包配制

https://www.cnblogs.com/gaoze/p/9583310.html

四、配制好后

image.png

hh

五、查看仓库jar包

改了个版本进行发布,看到有2个


image.png

六、下载私服jar包

https://blog.csdn.net/phone13144830339/article/details/79083017

上一篇 下一篇

猜你喜欢

热点阅读