make local repository with nexus
## prepare setup
[root@localhost ~]# mkdir /data
## install nexus
[root@localhost ~]# docker run -d -p 8081:8081 -p 5000:5000 --name nexus -v /data:/nexus-data sonatype/nexus3
Unable to find image 'sonatype/nexus3:latest' locally
latest: Pulling from sonatype/nexus3
262268b65bd5: Pull complete
06038631a24a: Pull complete
c627eca14741: Pull complete
3d019b6bc809: Pull complete
31c9adf1be12: Pull complete
Digest: sha256:72f00df032f0fbc6b6769db00bf7b2737ab105fc18fd4e4a2fc6962f70e90bda
Status: Downloaded newer image for sonatype/nexus3:latest
bfbba37c471b69b62b8f9dbf4eccb78cf64906fc87df6e270806525800a92cdf
[root@localhost ~]#
## login nexus
bash-4.4$ cat /nexus-data/admin.password
0b48b968-d0c7-424d-a2db-19eaae1f6622bash-4.4$
bash-4.4$
## login nexus
<?xml version="1.0" encoding="UTF-8"?> <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> <servers> <server> <id>nexus</id> <username>admin</username> <password>admin</admin> </server> </servers> <mirrors> <mirror> <id>nexus</id> <name>nexus</name> <url>http://192.168.0.140:8081/repository/home/</url> <mirrorOf>*</mirrorOf> </mirror> </mirrors> </settings>
댓글
댓글 쓰기