Consider change default for flyway locations from classpath:db/migration to filesystem:db/migration
romchellis opened this issue · 3 comments
romchellis commented
In order to avoid provision explicitly flyway locations like this
<flyway>
<locations>
filesystem:src/main/resources/db/migration
</locations>
</flyway>
We can add default as it implemented in flyway-maven-plugin
locations = new String[] {
Location.FILESYSTEM_PREFIX + workDir.getAbsolutePath() + "/src/main/resources/db/migration"
};
simasch commented
Why not use the classpath?
https://flywaydb.org/documentation/configuration/parameters/locations
romchellis commented
Hi @simasch
Now if locations were not provided, classpath:db/migration
default will be set.So since it is maven plugin, by default target directory does not include resources at generate
stage, so these resources will not be used by flyway.
simasch commented
@romchellis Ah you right!