Difference between libs-snapshot & libs-snapshot-local?

phoenix picture phoenix · Sep 2, 2013 · Viewed 7.4k times · Source

In our project, we are migrating from ant scripts to gradle build.

We are going to use artifactory as a repo manager in our company to store artifacts.

I have seen some repository stuff in artifactory, consisting of libs-snapshot-local as a remote repository and libs-snapshot as virtual repository. Same with releases repo libs-release-local and libs-release.

Can any one of you explain what is the difference between them? Can I deploy the artifacts to both of them?

Answer

JBaruch picture JBaruch · Sep 2, 2013

Virtual repository, as explained in the documentation, unify other remote, local and virtual repositories to provide a single URL for resolution.

libs-snapshot-local is not a remote repository, but a local repository. As explained in the documentation, local repositories are physical repositories in Artifactory which serve as targets for your deployments.

You don't need to deploy artifacts to both of them. Deploying to local makes the deployed artifacts available for retrieval from the virtual.