title: Azure devops not able to connect to jfrog Artifactory
body: <p>We are using jfrog Artifactory cloud to store maven dependency. we are using these dependencies in pom file. We are able to build from local file as we have added jfrog credentials in .m2/settings.xml file.
  When we try to run this same thing from azure devops yaml file we are getting authentication error (401 error code)and due to that libraries are not getting download and build is failed.
  We have added the service connection in azure devops and it is able to connect to jfrog.
  how to configure build pipeline to access jfrog Artifactory to access libraries?</p>
  <pre><code>trigger:
    - main
  
  pool:
    vmImage: &quot;ubuntu-latest&quot;
  
  steps:
    - checkout: self
      lfs: true
    - task: ArtifactoryToolsInstaller@1
      inputs:
        artifactoryService: 'xxxxxxxxxxxxxxxxxxxx'
        cliInstallationRepo: 'jfrog-cli'
        installExtractors: true
        extractorsInstallationRepo: 'jcenter'
    - task: ArtifactoryGenericDownload@3
      inputs:
        specSource: 'taskConfiguration'
        fileSpec: |
          {
            &quot;files&quot;: [
              {
                &quot;pattern&quot;: &quot;repo/*jar&quot;,
                &quot;target&quot;: $(System.DefaultWorkingDirectory)/lib
              }
            ]
          }
        failNoOp: true
    - task: Maven@3
      inputs:
        mavenPomFile: &quot;pom.xml&quot;
        mavenOptions: &quot;-Xmx3072m&quot;
        javaHomeOption: &quot;JDKVersion&quot;
        jdkVersionOption: &quot;1.8&quot;
        jdkArchitectureOption: &quot;x64&quot;
        publishJUnitResults: true
        testResultsFiles: &quot;**/surefire-reports/TEST-*.xml&quot;
        goals: &quot;package&quot;
    - publish: $(System.DefaultWorkingDirectory)/target/test.jar
      artifact: artifact
  </code></pre>