Install Maven Artifacts
Azure DevOps Services | Azure DevOps Server 2022 - Azure DevOps Server 2019
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
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.
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.
Related articles
Palaute
https://aka.ms/ContentUserFeedback.
Tulossa pian: Vuoden 2024 aikana poistamme asteittain GitHub Issuesin käytöstä sisällön palautemekanismina ja korvaamme sen uudella palautejärjestelmällä. Lisätietoja on täällä:Lähetä ja näytä palaute kohteelle