There has been a change in the generated package structure (if you extract the uber jar file) in SpringBoot 2.1.0.RELEASE.
The 1.5.9.RELEASE jar file has com
, lib
, META-INF
, and org
directories
2.1.0.RELEASE has a BOOT-INF
, META-INF
and org
directories
Basically from 2.0.0.RELEASE onwards - all the classes and libs are in the BOOT-INF
directory.
Due to this - when you try to run a Spring Boot project on Amazon Lambda - it says that there is a jar not found as it cannot read the new Spring Boot Uber jar structure
My question:
- Is it possible in the newer versions of the Spring Boot Maven Plugin, to generate the uber jar to be the same structure as in version 1.5.9.RELEASE?
I tried the maven-shade-plugin
- but that leads to other issues. Any help is appreciated.
Reference link from StackOverflow: Spring Boot Maven Plugin - No BOOT-INF directory