Skip to content

Cannot access spring repo: 401 , probably wrong permissions #25919

@kopax

Description

@kopax

I am not able to download from spring repo without error.

Download https://plugins.gradle.org/m2/org/jfrog/buildinfo/build-info-api/2.7.5/build-info-api-2.7.5.jar
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'api'.
> Could not resolve all files for configuration ':classpath'.
   > Could not download build-info-extractor-gradle.jar (org.jfrog.buildinfo:build-info-extractor-gradle:4.4.15)
      > Could not get resource 'https://repo.spring.io/plugins-release/org/jfrog/buildinfo/build-info-extractor-gradle/4.4.15/build-info-extractor-gradle-4.4.15.jar'.
         > Could not GET 'https://repo.spring.io/plugins-release/org/jfrog/buildinfo/build-info-extractor-gradle/4.4.15/build-info-extractor-gradle-4.4.15.jar'. Received status code 401 from server: Unauthorized
   > Could not download build-info-client.jar (org.jfrog.buildinfo:build-info-client:2.7.5)
      > Could not get resource 'https://repo.spring.io/plugins-release/org/jfrog/buildinfo/build-info-client/2.7.5/build-info-client-2.7.5.jar'.
         > Could not GET 'https://repo.spring.io/plugins-release/org/jfrog/buildinfo/build-info-client/2.7.5/build-info-client-2.7.5.jar'. Received status code 401 from server: Unauthorized
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

This is my build.gradle:

buildscript {
    repositories {
        mavenCentral()

        maven {
            url "https://repo.spring.io/plugins-release"
        }
        maven {
            url "https://plugins.gradle.org/m2/"
        }

        mavenLocal()
    }

    dependencies {
        classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
        classpath("se.transmode.gradle:gradle-docker:${gradleDockerVersion}")
        classpath("org.springframework.build.gradle:propdeps-plugin:${propdepsPluginVersion}")
        classpath("org.jfrog.buildinfo:build-info-extractor-gradle:${buildInfoExtractorGradleVersion}")
        classpath("org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:${sonarqubeGradlePluginVersion}")
        classpath("com.netflix.nebula:gradle-aggregate-javadocs-plugin:${nebulaAggregateJavadocsVersion}")
    }

I noticed the new error today, is this a mistake of configuration? The .pom is accessible without auth.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions