在对 Spring Batch 源代码进行编译的时候,提示仓库配置错误错误: org.gradle.api.resources.ResourceException: Could not get resource 'http://repo.spring.io/plugins-release/org/springframework/build/gradle/propdeps-plugin/0.0.7/propdeps-plugin-0.0.7.pom'. 根据官方的提示下面的这篇文章:https://spring.io/blog/2020/10/29/notice-of-permissions-changes-to-repo-spring-io-fall-and-winter-2020 在默认匿名用户访问的情况下,Spring Boot 的仓库有所调整。 针对 maven { url 'https://repo.spring.io/plugins-release' } 这个仓库地址,需要使用: maven { url 'https://repo.spring.io/plugins-release-local' } 来进行替代,以避免授权的问题。 完成上面的修改后,再重新编译就可以避免仓库地址的授权问题了。 https://www.ossez.com/t/spring-batch/776