Create a Maven Repository
On the navigation bar, choose the project where you want to create a repository.
On the project sidebar menu, choose Packages.
On the Packages page, click New repository.
In the New Package Repository window, specify repository settings:
Type: choose Maven Repository.
Name and Description: specify the repository name (it must be a unique identifier) and description.
Access to repository: choose whether the repository can be accessed by unauthenticated users. Learn more
Enable snapshot versions: allow publishing packages with the same version if they have the
SNAPSHOTpostfix. If this option is selected, you are allowed to publish packages with the same version (for example,
1.0-SNAPSHOT) multiple times. In this case, the packages will differ only by their timestamp. Note: The
SNAPSHOTpostfix is typically used to indicate that the package is still under development.
After you create the repository, click the Get Started button to see the command-line snippets that will help you get started: connect to the repository, publish, and get artifacts. Here you can also Generate personal token for accessing the repository.
On the top of the page you can copy the repository URL. For example, in case of a private repository: