Skip to content

Received status code 401 from server. #3

@vganesh

Description

@vganesh

Hi Michael,

I am trying to follow along with your lectures at pluralsight Getting Started with Spring Batch 4. Thx,

I have downloaded the code from https://github.com/michaelhoffmantech/patient-batch-loader.git and switched to build-start branch. This issue is in master branch also.

I have changed http to https in the build.gradle file. When I run the gradlew command, the error is 401 shown below. How to fix it?

Thanks and regards,
V.Ganesh

\IdeaProjects\spring\spring-batch\pluralsight\getting-started-spring-batch4\ch03\patient-batch-loader>

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

git branch

  • build-start
    master

gradle -version


Gradle 4.10.3

Build time: 2018-12-05 00:50:54 UTC
Revision: e76905e3a1034e6f724566aeb985621347ff43bc

Kotlin DSL: 1.0-rc-6
Kotlin: 1.2.61
Groovy: 2.4.15
Ant: Apache Ant(TM) version 1.9.11 compiled on March 23 2018
JVM: 1.8.0_411 (Oracle Corporation 25.411-b09)
OS: Windows 11 10.0 amd64

java -version
java version "1.8.0_411"
Java(TM) SE Runtime Environment (build 1.8.0_411-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.411-b09, mixed mode)

gradlew

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring root project 'patient-batch-loader'.

Could not resolve all files for configuration ':classpath'.
Could not resolve io.spring.gradle:propdeps-plugin:0.0.9.RELEASE.
Required by:
project :
> Could not resolve io.spring.gradle:propdeps-plugin:0.0.9.RELEASE.
> Could not get resource 'https://repo.spring.io/plugins-release/io/spring/gradle/propdeps-plugin/0.0.9.RELEASE/propdeps-plugin-0.0.9.RELEASE.pom'.
> Could not GET 'https://repo.spring.io/plugins-release/io/spring/gradle/propdeps-plugin/0.0.9.RELEASE/propdeps-plugin-0.0.9.RELEASE.pom'. Received status code 401 from server:

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 1s

What changes are needed to get a clean build? The missing pom file is available here https://mvnrepository.com/artifact/io.spring.gradle/propdeps-plugin/0.0.9.RELEASE

Thanks and regards,
V. Ganesh

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions