There are three types of repositories available in Nexus.
a.
Proxy
b.
Hosted
c.
Group
Proxy Repository
Proxy repository acts as a proxy to the remote repository. Whenever a
request for an artefact come to proxy repository, proxy repository checks
whether the requested artefact is available in its cache or not. If the
artefact is available it serves the artefact, else it gets the artefact from
the remote repository, cache the artefact and serve to the application.
Advantages
a.
Once the artefact is cached in proxy repository, it
stays there forever. Even the artefact is removed from remote repository, it
don’t have any effect on us.
b.
Once the artefact is cached, we no need to contact
remote repositories.
Hosted Repository
Nexus also support hosted repositories to store organizational internal
snapshots and releases.
Default installation of Nexus repository manager comes with two hosted
repositories.
a.
maven-releases repository
b.
maven-snapshots repository
Group Repository
A repository group is a collection of other repositories. You can
combine multiple repositories of same format to a single repository group.
I will explain each repository in detail in my later posts.
No comments:
Post a Comment