It looks like you're using the Maven task, which is not supported by the Artifactory Azure DevOps extension. This task does not utilize the Artifactory service connection that was configured.
Instead, I'd recommend using the ArtifactoryMaven task. Using this task enforces resolution and deployment to Artifactory and therefore, the settings.xml file is not necessary. This task also publishes to the relevant target deploy repositories.
Basic usage example:
- task: ArtifactoryMaven@1
inputs:
mavenPomFile: 'pom.xml'
goals: 'install'
artifactoryResolverService: 'xxxxxxxxxxxxxxxxxxxx'
targetResolveReleaseRepo: 'libs-release'
targetResolveSnapshotRepo: 'libs-snapshot'
artifactoryDeployService: 'xxxxxxxxxxxxxxxxxxxx'
targetDeployReleaseRepo: 'libs-release-local'
targetDeploySnapshotRepo: 'libs-snapshot-local'
You can read more about the Artifactory Maven task here.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…