Skip to content

Instantly share code, notes, and snippets.

View michbarsinai's full-sized avatar
😵
Happily overworked

Michael michbarsinai

😵
Happily overworked
View GitHub Profile
@BDF
BDF / mavenNotes.md
Last active March 8, 2021 12:21
Using the maven shade plugin on a Spring Boot application
  • Maven shade with Spring Boot

The goal was to create an uber-jar out of the Spring boot application. Following the directions given at Apache went very smoothly yet when I tried to execute the jar a large number of spring beans were missing and not getting loaded during runtime. For example, one of the beans not getting loaded was 'AutoConfigurationPackages'

jar -tvf name.jar | grep AutoConfigurationPackages showed that the class file was present in tha jar.