Jaa


Install Maven Artifacts

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.

Prerequisites

Connect to feed

  1. From your Azure DevOps project, select Artifacts, and then select your feed from the dropdown menu.

  2. Select Connect to feed.

    Screenshot showing how to connect to your feed

  3. Select Maven from the left navigation panel.

  4. Follow the instructions in the Project setup section to set up your config files and generate a new personal access token.

Tip

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.

mvn build

Tip

The <id> tags in your settings.xml and pom.xml files must be the same.