Really slow when using fat jars

Description

My app, CommaFeed, is running its changelogs every time it starts as it's really convenient for the end-users (see https://github.com/Athou/commafeed/blob/master/src/main/java/com/commafeed/backend/service/StartupService.java)

When I start the app in the IDE, liquibase runs really fast and everything works fine.
However, when the app starts from the command line using the package generated by maven (a 60Mb shaded jar), it takes at least 20s for the database update process to even start. Using a profiler, I found out that the process spent a lot of that time in DefaultPackageScanClassResolver.loadImplementationsInJar.

Environment

Both windows and linux

Status

Assignee

Unassigned

Reporter

Jérémie Panzer

Labels

None

Components

Fix versions

Affects versions

3.3.0

Priority

Major