Hi

spring-boot-maven-plugin ignores ZIP layout when building docker images , and always creates an image with JarLauncher While the same project when creating fatjar creates it with

Removing the ability to add external classpath with library.path when application running in a container

======= In Jar

cat META-INF/MANIFEST.MF 
Manifest-Version: 1.0
Spring-Boot-Classpath-Index: BOOT-INF/classpath.idx
Implementation-Title: testclasspth
Implementation-Version: 0.0.1-SNAPSHOT
Spring-Boot-Layers-Index: BOOT-INF/layers.idx
Start-Class: com.example.testclasspth.TestclasspthApplication
Spring-Boot-Classes: BOOT-INF/classes/
Spring-Boot-Lib: BOOT-INF/lib/
Build-Jdk-Spec: 1.8
Spring-Boot-Version: 2.4.5
Created-By: Maven Jar Plugin 3.2.0
Main-Class: org.springframework.boot.loader.PropertiesLauncher

===== In a Docker container

cnb@5a834f2565fb:/$ cat /workspace/META-INF/
MANIFEST.MF            build-info.properties  maven/                 
cnb@5a834f2565fb:/$ cat /workspace/META-INF/MANIFEST.MF 
Manifest-Version: 1.0
Spring-Boot-Classpath-Index: BOOT-INF/classpath.idx
Implementation-Title: testclasspth
Implementation-Version: 0.0.1-SNAPSHOT
Spring-Boot-Layers-Index: BOOT-INF/layers.idx
Start-Class: com.example.testclasspth.TestclasspthApplication
Spring-Boot-Classes: BOOT-INF/classes/
Spring-Boot-Lib: BOOT-INF/lib/
Build-Jdk-Spec: 1.8
Spring-Boot-Version: 2.4.5
Created-By: Maven Jar Plugin 3.2.0
Main-Class: org.springframework.boot.loader.JarLauncher

==== Pom <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <layout>ZIP</layout> </configuration> <executions> <execution> <goals> <goal>build-info</goal> <goal>build-image</goal> </goals> </execution> </executions> </plugin>