Cannot load migration SQL scripts from the root of the classpath in a jarfile #1498
What version of Flyway are you using?
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin, SBT plugin, ANT tasks)
What database are you using (type & version)?
What operating system are you using?
What did you do?
Created a FlywayMigrator class file with
and compiled it into a jar with the migration scripts, which can be found at the root of the jar
What did you expect to see?
I exepected that
What did you see instead?
Flyway cannot scan the root of the classpath.
The whole thing only works if i put the scripts in a subfolder.
What I've tried
I've tried debugging the code, and it seems that
because it evaluates to a failing location interpretation, it treats it as if the root of the classpath could not be resolved.
The text was updated successfully, but these errors were encountered:
I have this issue.
Also is it possible to run the migration using the java api and how can I do it?