Combined settings for signing and release stages#48761
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the Java release/signing automation to use a consolidated Maven settings/authentication approach across signing and release stages, aiming to ensure consistent mirror usage and successful access to Azure Artifacts feeds during publishing.
Changes:
- Updated Maven invocation in signing/publishing scripts to pass the release settings file via
--global-settings. - Added an Azure Artifacts Maven mirror configuration to the DocMS daily update Maven settings.
- Inserted Maven authentication/mirror setup steps into key jobs in the Java release batch pipeline.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| eng/scripts/SignAndHash-MavenPackages.ps1 | Switch Maven settings flag to --global-settings for signing/hashing. |
| eng/scripts/Publish-MavenPackages.ps1 | Switch Maven settings flag to --global-settings for publishing/deploy. |
| eng/repo-docs/docms/daily.update.setting.xml | Add mirror configuration for Azure Artifacts feed. |
| eng/pipelines/templates/stages/archetype-java-release-batch.yml | Add Maven authentication/mirror setup steps across signing/release/integration jobs. |
raych1
commented
Apr 10, 2026
weshaggard
approved these changes
Apr 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request combines the CFS mirror settings and customized settings for signing stage and release stage.
Key Changes
Publish-MavenPackages.ps1andSignAndHash-MavenPackages.ps1scripts to use the--global-settingsflag (instead of--settings) when specifying the Maven settings file, aligning with best practices and ensuring the correct settings are applied globally./eng/pipelines/templates/steps/maven-authenticate.ymltemplate andMavenAuthenticate@0task to multiple stages in thearchetype-java-release-batch.ymlpipeline to ensure proper Maven authentication with Azure Artifacts during artifact download, signing, and publishing steps.