Unable to download spring boot dependencies, spring repo asking for credentials

2.9k Views Asked by At

Unable to mvn clean install spring boot project. Downloading dependencies failing with error Authentication failed for https://repo.spring.io/plugins-release/org/jetbrains/kotlin/kotlin-bom/1.3.50/kotlin-bom-1.3.50.pom 401 Unauthorized

Same POM and maven configurations worked earlier. All of a sudden facing this issue. Directly accessing the said repo is asking for credentials(attached image). Not sure how to proceed. Any help is much appreciated.

Note : Using https not http. Just a thought. If it related to version upgrading(if older version are not being supported) many such internal dependencies are failing how to handle this.

enter image description here

1

There are 1 best solutions below

2
On

Changing mirror in settings.xml from SpringRepo to UK Central worked. Used below mirror

   <mirror>
      <id>UK</id>
      <name>UK Central</name>
      <url>https://repo.maven.apache.org/maven2</url>
      <mirrorOf>central</mirrorOf>
    </mirror>