#Sonatype Nexus
Open-source artifact repository.
#Features
| Feature | Description |
|---|---|
| Repository Manager | Store artifacts |
| Proxy | Cache remote repos |
| Hosted | Private repos |
| Security | Vulnerability scanning |
#Quick Start
bash
1# Docker
2docker run -d --name nexus \
3 -p 8081:8081 \
4 -v nexus-data:/nexus-data \
5 sonatype/nexus3
6
7# Access: http://localhost:8081
8# Get password
9docker exec nexus cat /nexus-data/admin.password#Repository Types
| Type | Description |
|---|---|
| Proxy | Cache remote |
| Hosted | Private storage |
| Group | Combine multiple |
#Usage
bash
1# Docker
2docker login localhost:8082
3docker push localhost:8082/myimage:1.0
4
5# Maven (settings.xml)
6<servers>
7 <server>
8 <id>nexus</id>
9 <username>admin</username>
10 <password>password</password>
11 </server>
12</servers>[!TIP] Pro Tip: Nexus OSS is free and excellent for small teams!