docker volume create --name nexus-data
docker run -d -p 8081:8081 --name nexus -v nexus-data:/nexus-data sonatype/nexus3
查看日志搜索pass后台登录密码
然后设置代理仓库
5star-central -> https://repo.efivestar.com/repository/maven-public/
aliyun-central -> http://maven.aliyun.com/nexus/content/repositories/central/
mail-central -> https://oss.sonatype.org/service/local/staging/deploy/maven2/
再设置一个对外暴露的仓库group
fenggo-central ->
参考链接:
maven——nexus的安装及配置使用_mengda_lei的博客-CSDN博客_maven nexus配置