What are the equivalent maven commands and settings to upload and download azure artifacts?

后端 未结 1 1952
忘掉有多难
忘掉有多难 2020-12-22 07:44

I have a maven project (in a pipeline) that needs to consume artifacts deployed (via mvn deploy) in another azure pipeline as a dependency.

I am able to upload and do

相关标签:
1条回答
  • 2020-12-22 08:03

    Firstly, for Universal package, it is just a collection of files that you’ve uploaded to our service and labelled with a name and version. And you can download it through Universal Package task during build or release.

    More information, you can refer to: Getting started with Universal Packages

    Since you are using JAVA package, please deploy/publish JAVA package through MVN deploy.

    Secondly, there are collection and project level/scope feeds. For project level/scope, you need to specify project name in URL, such as https://pkgs.dev.azure.com/{org}/{project}/_packaging/{feed}/maven/v1.

    Thirdly, to use JAVA package in another JAVA project, you need to configure credential in settings.xml in user's folder (${user.home}/.m2). For build or release pipeline, you just need to add Maven Authenticate task for authentication.

    Then, you need to specify package in pom.xml (under section). You could get this information in Connect to feed > select Maven.

    More information, you can refer to: Get started with Maven feeds and Artifacts

    0 讨论(0)
提交回复
热议问题