Edit

Share via


Publish Maven packages to an Azure Artifacts feed

Azure DevOps Services | Azure DevOps Server 2022 | Azure DevOps Server 2020

Azure Artifacts provides a centralized way to host and manage your packages in a single feed. This article guides you through connecting to an Azure Artifacts feed and publishing your Maven packages.

Prerequisites

Product Requirements
Azure DevOps - An Azure DevOps organization.
- An Azure DevOps project.
- Download and Install Maven.

Create a feed

If you already have a feed, you can skip this section. Otherwise, follow the steps below to create a new feed:

  1. Sign in to your Azure DevOps organization, and navigate to your project.

  2. Select Artifacts, and then select Create Feed.

  3. Enter a Name for your feed, choose its Visibility, then select its Scope. To include packages from public registries, select the Upstream sources checkbox.

  4. Select Create when you're done.

Publish packages

  1. If you haven’t already authenticated with your feed, follow the steps in Project setup to connect to your feed.

  2. Run the following command in your project directory to publish your package:

    mvn deploy
    
  3. Once published, navigate to your feed. You should see your packages listed, as shown in the example below:

    A screenshot displaying a Maven package successfully published to the feed.