Install Maven Artifacts
Azure DevOps Services | Azure DevOps Server 2020 | Azure DevOps Server 2019 | TFS 2018 | TFS 2017
With Azure Artifacts, you can publish and restore Maven packages to/from your Azure Artifacts feed. In this article, we will be covering how to restore your packages from an Azure Artifacts feed.
Connect to feed
From within your project, select Artifacts, and then select your feed. You can create a new feed if you don't have one already.
Select Connect to feed.
If this is the first time using Azure Artifacts with Maven, select Get the tools button and follow the instructions to download and install the prerequisites.
Follow the instructions in the Project setup section to set up your config files and generate a new personal access token.
<id> tags in your settings.xml and pom.xml files must be the same.
Restore Maven packages
Run the following command in an elevated command prompt to download your Maven packages. Maven automatically downloads all your dependency to your local repository when the build command is executed.