testcontainers/testcontainers-jooq-codegen-maven-plugin

Consider change default for flyway locations from classpath:db/migration to filesystem:db/migration

romchellis opened this issue · 3 comments

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"
                };

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.

@romchellis Ah you right!