2021年3月25日星期四

Cannot connect to Azure Devops maven repo

I have a maven repo in azure that I am trying to use as a dependency in my android project

In my root build.gradle I added the maven credentials

buildscript {        repositories {          google()          jcenter()      }      dependencies {          classpath 'com.android.tools.build:gradle:4.1.3'          classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"      }  }    allprojects {      repositories {          google()          jcenter()          maven { url "https://jitpack.io" }          maven {              url 'http://devtfs/Android/_packaging/lib/maven/v1'              credentials {                  username "AZURE_ARTIFACTS"                  password System.getenv("AZURE_ARTIFACTS_ENV_ACCESS_TOKEN") ?: "${azureArtifactsGradleAccessToken}"              }          }      }  }    task clean(type: Delete) {      delete rootProject.buildDir  }  

In my app build.gradle I add the dependency and then I go to build I get this error when it tries to resolve that dependency

NEGOTIATE authentication error: No valid credentials provided (Mechanism level: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt))

I know its that dependency because if I remove it the error goes away

I am able to publish new versions to the maven repo just fine so I know I have the correct credentials, we even tried giving full permissions in Azure and I still get the error.

Anyone know what could be the issue? Did I put the maven information in the correct place?

https://stackoverflow.com/questions/66807112/cannot-connect-to-azure-devops-maven-repo March 26, 2021 at 04:27AM

没有评论:

发表评论