Nexus supports three main types of repositories:
1. Hosted Repositories:
- Store artifacts directly in Nexus
- Used for internal artifacts and builds
- Example: Internal Maven snapshots, private npm packages
2. Proxy Repositories:
- Cache artifacts from remote repositories
- Reduce external network calls and improve build performance
- Example: Proxying Maven Central, npm registry
3. Group Repositories:
- Aggregate multiple repositories into a single endpoint
- Provide unified access to hosted and proxy repositories
- Simplify client configuration by using one URL
Example configuration hierarchy:
maven-public (group)
├── maven-releases (hosted)
├── maven-snapshots (hosted)
└── maven-central (proxy)