Maven私服

拉取镜像(这里使用官方镜像,基于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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容