This topic describes how to create an sbt repository. This is required before deploying and resolving sbt artifacts. There are three main repository types:
Local repositories: Store and share first- and second-party packages with your organization
Remote repositories: Download packages from remote locations, including external package registries or other Artifactory instances
Virtual repositories: Aggregate remote and local repositories, enabling your organization to scale by providing a single URL that provides access to multiple repositories and types
For more information on JFrog repositories, see Repository Management Overview.
Prerequisite: You need Admin or Project Admin permissions in Artifactory to create a repository.
To create an sbt repository:
In the Administration tab, click Repositories | Create a Repository.
Select the type of repository you want to create: local, remote, or virtual.
Select the sbt package type.
Configure the required fields for the repository:
For local repositories, in the Repository Key field, type a meaningful name for the repository. For example,
sbt-maven-local. For more information on local repositories and their settings, see Local Repositories.Select an appropriate layout for the local repository, like Maven or Ivy, as the default sbt layout is not supported for cleanup and archiving. For more information, see sbt Repository Layouts.
For remote repositories, verify the Repository URL and update as needed. For more information on remote repositories and their settings, see Remote Repositories.
For virtual repositories, select one or more local or remote repository types to include in the virtual repository. For more information on virtual repositories and their settings, see Virtual Repositories.
Click Create Repository. The repository is created and the Repositories window is displayed.
Tip
To proxy Maven and Ivy, it is best practice to create remote or virtual repositories for each one and proxy them separately in sbt. Avoid proxying both in a single virtual repository. For more information, see Proxying Ivy Repositories in the sbt documentation.