-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Use CFS as the package resolution source #47901
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
raych1
wants to merge
19
commits into
main
Choose a base branch
from
users/raych1/package-use-cfs
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
238765e
Updated parent pom file to use internal azure artifact feed
raych1 527b6af
Added auth task
raych1 437a9f9
Added auth task to more pipeline files
raych1 e17a9d4
Added access token variable
raych1 a1e44b9
Added token to global variable
raych1 b0b46d0
Removed network isolation policy for testing
raych1 4fb40c8
increase timeout
raych1 faeb9ab
added mirror setting
raych1 7d5f609
removed unused file
raych1 2b4a4f7
Updated spring ymls
raych1 2f6dd60
Reverted changes to spring pom file
raych1 357cf3e
Added back pom changes for spring service
raych1 090a81f
Updated variables
raych1 2704f0f
Fixed spring test template
raych1 60bdecb
validate with test feed
raych1 fb1dbf9
Updated env name
raych1 a6f4129
updated dep version
raych1 4fac2dd
use feed name
raych1 5247e55
update test step
raych1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| <extensions xmlns="http://maven.apache.org/EXTENSIONS/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| xsi:schemaLocation="http://maven.apache.org/EXTENSIONS/1.1.0 https://maven.apache.org/xsd/core-extensions-1.0.0.xsd"> | ||
| <extension> | ||
| <groupId>com.microsoft.azure</groupId> | ||
| <artifactId>artifacts-maven-credprovider</artifactId> | ||
| <version>3.0.0</version> | ||
| </extension> | ||
| </extensions> |
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
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| steps: | ||
| # Copy settings.xml to default Maven location | ||
| - pwsh: | | ||
| $m2Dir = if ($env:USERPROFILE) { "$env:USERPROFILE\.m2" } else { "$HOME/.m2" } | ||
| New-Item -ItemType Directory -Force -Path $m2Dir | Out-Null | ||
| Copy-Item -Path "$(Build.SourcesDirectory)/eng/settings.xml" -Destination "$m2Dir/settings.xml" | ||
| displayName: 'Setup Maven settings' | ||
|
|
||
| # Authenticate with Azure Artifacts feeds | ||
| - task: MavenAuthenticate@0 | ||
| displayName: 'Maven Authenticate' | ||
| inputs: | ||
| artifactsFeeds: 'test-maven-feed' |
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| # eng/scripts/setup-dev.ps1 | ||
| # One-time setup script for Azure SDK for Java development | ||
|
|
||
| $settingsSource = Join-Path $PSScriptRoot "..\settings.xml" | ||
| $m2Dir = if ($env:USERPROFILE) { Join-Path $env:USERPROFILE ".m2" } else { Join-Path $HOME ".m2" } | ||
| $settingsTarget = Join-Path $m2Dir "settings.xml" | ||
|
|
||
| # Ensure .m2 directory exists | ||
| if (-not (Test-Path $m2Dir)) { | ||
| New-Item -ItemType Directory -Path $m2Dir | Out-Null | ||
| } | ||
|
|
||
| # Copy settings.xml if not present | ||
| if (-not (Test-Path $settingsTarget)) { | ||
| Copy-Item $settingsSource $settingsTarget | ||
| Write-Host "✓ Copied settings.xml to $settingsTarget" | ||
| } else { | ||
| Write-Host "⚠ settings.xml already exists at $settingsTarget" | ||
| $response = Read-Host "Overwrite? (y/N)" | ||
| if ($response -eq 'y') { | ||
| Copy-Item $settingsSource $settingsTarget -Force | ||
| Write-Host "✓ Overwritten settings.xml" | ||
| } | ||
| } | ||
|
|
||
| Write-Host "" | ||
| Write-Host "Setup complete! You can now run 'mvn' commands." |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,13 @@ | ||
| <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" | ||
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 | ||
| https://maven.apache.org/xsd/settings-1.0.0.xsd"> | ||
| <mirrors> | ||
| <!-- Mirror all requests to Azure Artifacts feed, except Confluent (not available as upstream) --> | ||
| <mirror> | ||
| <id>test-maven-feed</id> | ||
| <name>Azure Artifacts Maven Mirror</name> | ||
| <url>https://pkgs.dev.azure.com/azure-sdk/public/_packaging/test-maven-feed/maven/v1</url> | ||
| <mirrorOf>*,!confluent</mirrorOf> | ||
| </mirror> | ||
| </mirrors> | ||
| </settings> | ||
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@weshaggard this is the only place using the confluent upstream which is not available in azure artifacts. Let me ask maven CFS support if we can add it to upstream source.
azure-sdk-for-java/sdk/cosmos/azure-cosmos-kafka-connect/pom.xml
Line 33 in 1049e3f
The Credential provider docs also suggests using
MavenAuthenticate@0task in pipeline scenarios.