Remote Repository Layout Configuration

JFrog Artifactory Documentation

Products
JFrog Artifactory
Content Type
User Guide
ft:sourceType
Paligo

Layouts are mandatory only for the remote repository cache configuration. However, you can also specify the layout of the remote repository itself, as described in the procedure below.

To configure a repository layout for a remote repository:

  1. In the Administration module, select Repositories.

  2. Do one of the following:

    • When creating a new repository, click Create a Repository and then select Remote.

      or

    • When modifying an existing repository, click the Remote tab, locate the relevant repository and click its repository key.

  3. In the Basic tab, scroll down to the Repository Layout field.

    If the remote repository itself uses a different layout than the one chosen for the cache, all requests to the remote target are translated from the path of the cache layout to the path of the remote layout.

    For example, suppose you have a remote repository that stores its artifacts according to the Maven 1 convention. You can configure the cache of this repository to use the Maven 2 layout but set the Remote Layout Mapping to Maven 1. This way, the repository cache handles Maven 2 requests and artifact storage, while outgoing requests to the remote repository are translated to the Maven 1 convention.

    Remote-repo_maven-layouts.png
  4. Select a repository layout from the list and then click Save.