I'm using Spring Boot 2.7.7

Running

mvn spring-boot:build-image

produces

Spring Cloud Bindings 1.10.0: Contributing to layer
[INFO]     [creator]         Downloading from https://repo.spring.io/release/org/springframework/cloud/spring-cloud-bindings/1.10.0/spring-cloud-bindings-1.10.0.jar
[INFO]     [creator]     unable to invoke layer creator
[INFO]     [creator]     unable to contribute spring-cloud-bindings layer
[INFO]     [creator]     unable to get dependency spring-cloud-bindings
[INFO]     [creator]     unable to download https://repo.spring.io/release/org/springframework/cloud/spring-cloud-bindings/1.10.0/spring-cloud-bindings-1.10.0.jar
[INFO]     [creator]     could not download https://repo.spring.io/release/org/springframework/cloud/spring-cloud-bindings/1.10.0/spring-cloud-bindings-1.10.0.jar: 401
[INFO]     [creator]     ERROR: failed to build: exit status 1

Comment From: simasch

It looks like this is causing the problem: https://spring.io/blog/2022/12/14/notice-of-permissions-changes-to-repo-spring-io-january-2023

Comment From: scottfrederick

It looks like this is causing the problem: https://spring.io/blog/2022/12/14/notice-of-permissions-changes-to-repo-spring-io-january-2023

Yes, that's the cause. The Paketo Spring Boot buildpack is attempting to download the Spring Cloud Bindings library. The problem will need to be resolved by those two projects. We'll work with those projects to come up with a solution.

Comment From: jeisinge

FYI - A possible work around is available at https://github.com/paketo-buildpacks/spring-boot/issues/225#issuecomment-1186597162

Comment From: simasch

@jeisinge Thanks. My workaround is to use a Dockerfile. This will be much more reliable.

Comment From: scottfrederick

There is a related Spring Cloud Bindings issue here: https://github.com/spring-cloud/spring-cloud-bindings/issues/71

And a Paketo Spring Boot buildpack issue here: https://github.com/paketo-buildpacks/spring-boot/issues/304

Comment From: scottfrederick

Similar download errors will happen for the following libraries when building images from a plain war file that requires Tomcat to run:

  • tomcat-access-logging-support
  • tomcat-lifecycle-support
  • tomcat-logging-support

See the Paketo Apache Tomcat buildpack issue here: https://github.com/paketo-buildpacks/apache-tomcat/issues/295