Docker build Maven PW

1. Download Mirror

[root@master_150 ~]# docker pull sonatype/nexus3

2. Run containers

[root@master_150 ~]# docker run -d -p 8081:8081 --name nexus -v /opt/nexus/nexus-data:/var/nexus-data --restart=always 192.168.1.196:5000/sonatype/nexus3:latest

3. Log background

admin / admin123

4. Create warehouse

Click Create repository

Then select maven2 (hosted)

Then enter the name of the warehouse (test-release)

Select the type of warehouse in this version policy, the selected release here

Select Allow redeploy the Deployment policy in

5. Create user

Users click on the left menu bar menu, then click Create local user

 

Great God welcome you to comment thumbs up!

Published 28 original articles · won praise 36 · views 739

Guess you like

Origin blog.csdn.net/xieweikun_7/article/details/105334330