Skip to content

Comments

Use CFS as the package resolution source#47901

Merged
raych1 merged 30 commits intomainfrom
users/raych1/package-use-cfs
Feb 20, 2026
Merged

Use CFS as the package resolution source#47901
raych1 merged 30 commits intomainfrom
users/raych1/package-use-cfs

Conversation

@raych1
Copy link
Member

@raych1 raych1 commented Feb 5, 2026

Resolved #47751

Key changes:

  • Use MavenAuthenticate@0 pipeline task for authentication

  • Removed customized eng/settings.xml

  • Modified all parent POMs (azure-sdk-parent, azure-client-sdk-parent, azure-client-sdk-parent-v2) and separated service's POMs to remove references to Sonatype OSSRH and use the Azure Artifacts Maven feed as the central repository

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates the Azure SDK for Java build infrastructure from using Sonatype OSSRH to Azure Artifacts (CFS) for Maven package resolution and distribution. The changes ensure that all Maven builds authenticate with Azure Artifacts using Azure DevOps system access tokens.

Changes:

  • Updated Maven parent POMs to use Azure Artifacts as the central repository
  • Configured Maven settings.xml with mirror and authentication for Azure Artifacts
  • Added SYSTEM_ACCESSTOKEN environment variable to pipeline jobs and Maven tasks

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated no comments.

Show a summary per file
File Description
sdk/parents/clientcore-parent/pom.xml Updated repositories, pluginRepositories, and distributionManagement to use Azure Artifacts feed
sdk/parents/azure-sdk-parent/pom.xml Updated repositories and pluginRepositories to use Azure Artifacts feed
sdk/parents/azure-client-sdk-parent/pom.xml Updated repositories, pluginRepositories, and distributionManagement to use Azure Artifacts feed
sdk/parents/azure-client-sdk-parent-v2/pom.xml Updated repositories, pluginRepositories, and distributionManagement to use Azure Artifacts feed
sdk/clientcore/annotation-processor/pom.xml Removed duplicate repository/distributionManagement configurations (now inherited from parent)
eng/settings.xml Configured Maven mirror and server authentication using SYSTEM_ACCESSTOKEN environment variable
eng/pipelines/templates/variables/globals.yml Added SYSTEM_ACCESSTOKEN global variable for pipeline authentication
eng/pipelines/templates/steps/run-and-validate-linting.yml Removed obsolete comment
eng/pipelines/templates/steps/build-and-test.yml Added SYSTEM_ACCESSTOKEN to all Maven task environments
eng/pipelines/templates/steps/build-and-test-native.yml Added SYSTEM_ACCESSTOKEN to all Maven task environments
eng/pipelines/templates/jobs/native.live.tests.yml Added SYSTEM_ACCESSTOKEN job variable
eng/pipelines/templates/jobs/live.tests.yml Added SYSTEM_ACCESSTOKEN job variable
eng/pipelines/templates/jobs/ci.yml Added SYSTEM_ACCESSTOKEN job variables to Build and Analyze jobs
eng/pipelines/templates/jobs/build-validate-pom.yml Added SYSTEM_ACCESSTOKEN job variable

@github-actions
Copy link
Contributor

github-actions bot commented Feb 12, 2026

API Change Check

APIView identified API level changes in this PR and created the following API reviews

com.azure:azure-ai-projects

@raych1
Copy link
Member Author

raych1 commented Feb 18, 2026

/azp run java - template

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@weshaggard weshaggard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good. Can you also please add some docs in the contributing.md file on how to setup the auth, similar to what we have in .NET https://github.com/Azure/azure-sdk-for-net/blob/main/CONTRIBUTING.md#unauthorized-access-to-the-feed

@raych1
Copy link
Member Author

raych1 commented Feb 18, 2026

Changes look good. Can you also please add some docs in the contributing.md file on how to setup the auth, similar to what we have in .NET https://github.com/Azure/azure-sdk-for-net/blob/main/CONTRIBUTING.md#unauthorized-access-to-the-feed

This is the PR to update the CONTRIBUTION.md.
#48032

@raych1
Copy link
Member Author

raych1 commented Feb 19, 2026

/azp run java - template

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@raych1 raych1 merged commit 45fee91 into main Feb 20, 2026
93 checks passed
@raych1 raych1 deleted the users/raych1/package-use-cfs branch February 20, 2026 19:25
jeet1995 pushed a commit to jeet1995/azure-sdk-for-java that referenced this pull request Feb 23, 2026
* Updated parent pom file to use internal azure artifact feed

* Added auth task

* Added auth task to more pipeline files

* Removed network isolation policy for testing
* Added back pom changes for spring service

* Updated variables

* Fixed spring test template

* validate with test feed

* Updated env name

* updated dep version

* use feed name

* update test step

* removed repository settings

* added auth step in some missing places

* Reverted token env changes

* added mvn extensions to the gitignore file

* removed extensions.xml

* override repo settings

* removed settings file

* removed extra script

* Updated feed to azure-sdk-for-java

* Cleaned up test feed

* Adjusted the place to auth maven feed to avoid duplicated auth warnings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: 🔬 Dev in PR

Development

Successfully merging this pull request may close these issues.

Switch to using CFS for packages resoution

3 participants