You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
RobertHeim, asaikali, harvanir, VederJay and mutyonok