To simplify access to different repositories, Artifactory allows you to define a virtual repository. A virtual repository is a collection of local, remote, and other virtual repositories with the same package type accessed through a single logical URL.
A virtual repository hides the access details of the underlying repositories, letting users work with a single, well-known URL. The underlying participating repositories and their access rules may be changed without requiring any client-side changes.
Generic Virtual Repositories
By their nature, Virtual Repositories whose package type has been specified as Generic can aggregate repositories of any type, however, generic virtual repositories do not maintain any metadata.
The Default Virtual Repository (Deprecated)
Artifactory offers an option to use a global virtual, which contains all local and remote repositories.
By default this option is disabled, to enable the Default Virtual Repository edit the artifactory.system.properties
file located at $JFROG_HOME/artifactory/var/etc/artifactory
and set the following flag to false
:
## Disable the download access to the global 'repo' artifactory.repo.global.disabled=false
This change requires you to restart your Artifactory service.
Once enabled the repository is available at:
http://<hostname>:<port>/artifactory/repo