Install Maven Artifacts
Azure DevOps Services | Azure DevOps Server 2022 - Azure DevOps Server 2019 | TFS 2018
With Azure Artifacts, you can publish and restore Maven packages from Azure Artifacts feed and public registries. In this article, you will learn how to connect to Azure Artifacts feeds and restore your Maven packages.
An Azure DevOps organization. Create an organization, if you don't have one already.
An Azure Artifacts feed. Create a new feed if you don't have one already.
Connect to feed
From your Azure DevOps project, select Artifacts, and then select your feed from the dropdown menu.
Select Connect to feed.
Select Maven from the left navigation panel.
Follow the instructions in the Project setup section to set up your config files and generate a new personal access token.
If your settings.xml file is shared within your team, you can use Maven to encrypt your passwords.
Restore Maven packages
Run the following command in an elevated command prompt to download your Maven packages. Maven automatically downloads all your dependencies to your local repository when the
build command is executed.
<id> tags in your settings.xml and pom.xml files must be the same.