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:
In the Administration module, select Repositories.
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.
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.
Select a repository layout from the list and then click Save.