I have a jar file that contains my changelogs.
This jar is a dependency of a project that executes all the changelogs contained.
This si my jar layout
I also included my main changeLog File.
Liquibase can't resolve relative path inside the jar, I find out that the problem (and the solution) is here:
You can't do new File(relativeTo).getParent() inside a jar
My solution is to change the code to this:
I'm totally wrong, my case is a corner case, new File(relativeTo).getParent() return null because relativeTo is "db.changelog-master.json" without a parent folder....