Create a Maven Repository

JFrog Artifactory Documentation

Products
JFrog Artifactory
Content Type
User Guide

This topic describes how to create a Maven repository. This is required before you can deploy artifacts to Maven repositories. There are three primary types of repositories:

  • Local repositories: Where you store and share 1st and 2nd party repositories with your organization

  • Remote repositories: Enable you to download from any remote location including external repositories or other Artifactory instances

  • Virtual repositories: Enable aggregating 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 to create a Maven repository. If you don't have Admin permissions, the option will not be available.

To create a Maven repository:

  1. In the Administration tab, click Repositories | Create a Repository.

    Create_Repo_for_package_rewrite.png
  2. From the drop-down list, select the repository type you want to create. The Select Package Type window appears.

  3. In the Select Package Type window, select Maven.

  4. In the New Repository window, configure the required fields as described in the following list:

    • For Local Repositories, in the Repository Key field type a meaningful name for the repository. For example, maven-local-repository-1. For more information on configuring local repositories, see Local Repositories.

    • For Remote Repositories, additionally verify the Repository URL and update if needed. For more information on Remote Repositories and all its possible settings, see Remote Repositories.

    • For Virtual Repositories, additionally select one or more local or remote repository types to include in the virtual repository. For more information on virtual repositories and all its possible settings, see Virtual Repositories.

  5. When you are finished configuring the repository, click Create Repository. The repository is created and the Repositories window is displayed.