Skip to content

Exploded archives launched using the launcher have an incorrectly ordered classpath that also contains non-existent jar files #24192

@ugrave

Description

@ugrave

I have a boot application which is executing flyway migrations on app start. The migration itself runs succesfully.
But when create a docker image with mvn spring-boot:build-image and run the image its show many warnings in the log:

Skipping unloadable jar file: file:/workspace/XXXjar

Im also try to create a custom image following the instruction here https://spring.io/blog/2020/08/14/creating-efficient-docker-images-with-spring-boot-2-3.
I have placed the app code in the folder /opt/app inside of the container. Here im also getting this warnings:
Skipping unloadable jar file: file:/opt/app/XXX.jar (/opt/app/XXX.jar)
Here i found out that the scanner try to upen the jar in the wrong folder.
Its not placed in /opt/app its inside of /opt/app/BOOT-INF/lib/XXXjar.

With fat jar images its working without warnings.

The migration script are placed in the deafult folder classpath:db/migrations

Spring Boot Version: 2.4.0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions