Uber jar created by spring-boot-maven-plugin sometimes requires that the application depends on spring-framework.
-
PropertiesLauncher imports Assert from spring-framework, and can sometimes fail.
-
JarModeLauncher imports two spring-framework classes, and always fails. This means layered jar cannot be used without spring-framework.
It is perhaps reasonable to assume that spring-boot-maven-plugin is used only in spring-boot apps which should have spring-framework on the classpath. Nonetheless, it'd be nice to eliminate these dependencies so that the plugin can be used for non-spring apps too.