I got trouble with spring-boot-maven-plugin build process. I just want to build
excutable "layered" jar file for optimizing docker image. As document said this build process will produce layered jar by default https://docs.spring.io/spring-boot/docs/current/maven-plugin/reference/htmlsingle/. Here is apart of my pom.xml file
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<layers>
<enabled>true</enabled>
</layers>
</configuration>
</plugin>
</plugins>
</build>
I used spring boot 2.5.5, maven 3.6.3
Some steps produce:
mvn clean package
jar -tf target/[excutableJarFile].jar
This filesystem of excutableJarFile is just BOOT-INF, META-INF and org although it should be
- dependencies
- spring-boot-loader
- snapshot-dependencies
- application