What are best practices for creating a snapshot of a remote repository?

You may choose to create a snapshot of a remote repository in order to make sure that all installs use the same version of artifacts. Here are suggestions when creating a snapshot.


1. Cache the required remote artifacts to a remote repository (you may complete builds using the remote repository, so all needed packages will be cached).

2. Make a new local repository with a repository name that contains the date when the snapshot was made (e.g.abc-2016may03)

3. Copy the cache made in step 1 to the local repository that was created in step 2.

4. Resolve artifacts from the local repository.