| title | Publish Maven packages to an Azure Artifacts feed |
|---|---|
| description | Learn how to connect to a feed and publish your Maven packages. |
| ms.service | azure-devops-artifacts |
| ms.topic | how-to |
| ms.author | rabououn |
| author | ramiMSFT |
| ms.date | 05/14/2025 |
| monikerRange | <=azure-devops |
| recommendations | true |
[!INCLUDE version-lt-eq-azure-devops]
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.
| Product | Requirements |
|---|---|
| Azure DevOps | - An Azure DevOps organization. - An Azure DevOps project. - Download and Install Maven. |
If you already have a feed, you can skip this section. Otherwise, follow the steps below to create a new feed:
-
Sign in to your Azure DevOps organization, and navigate to your project.
-
Select Artifacts, and then select Create Feed.
-
Enter a Name for your feed, choose its Visibility, then select its Scope. To include packages from public registries, select the Upstream sources checkbox.
-
Select Create when you're done.
-
If you haven’t already authenticated with your feed, follow the steps in Project setup to connect to your feed.
-
Run the following command in your project directory to publish your package:
mvn deploy -
Once published, navigate to your feed. You should see your packages listed, as shown in the example below:
:::image type="content" source="media/publish-package-maven.png" alt-text="A screenshot displaying a Maven package successfully published to the feed.":::