Note that there are some explanatory texts on larger screens.

plurals
  1. POFlyway not finding migraions only in my jar file
    primarykey
    data
    text
    <p>I have a similar problem to <a href="https://stackoverflow.com/questions/11226070/flyway-not-finding-the-migrations-in-a-jar-file">this</a> but I've migrate to version 2.1.1 and the problem are still here. I just do something like that</p> <pre><code> Flyway flyway = new Flyway(); flyway.setLocations(MIGRATION_PACKAGES); flyway.setDataSource(getDatasource()); flyway.setTable("schema_version"); flyway.setSqlMigrationPrefix("v"); flyway.migrate(); </code></pre> <p>There is no problem with that cause all work fine in my IDE, but when I package in jar, that not found my migrations ... any ideas ?</p> <p>Edit: I've already test to put my jar who contain the migration in dependency of a test app who just migrate and the migrations are apply fine ... I don't know what i can do.</p> <p>Edit I've enabled the FINEST logging and at the moment to find migration </p> <pre><code>FINE: Scanning for resources at 'db/migration' (Prefix: 'v', Suffix: '.sql') juil. 10, 2013 4:44:53 PM com.googlecode.flyway.core.util.scanner.ClassPathScanner findResourceNames FINE: Unable to determine URL for classpath location: db/migration (ClassLoader: java.net.URLClassLoader@6458c2) juil. 10, 2013 4:44:53 PM com.googlecode.flyway.core.util.scanner.ClassPathScanner scanForClasses FINE: Scanning for classes at 'db/migration' (Implementing: 'com.googlecode.flyway.core.api.migration.jdbc.JdbcMigration') juil. 10, 2013 4:44:53 PM com.googlecode.flyway.core.util.scanner.ClassPathScanner findResourceNames FINE: Unable to determine URL for classpath location: db/migration (ClassLoader: java.net.URLClassLoader@6458c2) juil. 10, 2013 4:44:53 PM com.googlecode.flyway.core.util.scanner.ClassPathScanner scanForResources FINE: Scanning for resources at 'com/me/myapp/sql/migration' (Prefix: 'v', Suffix: '.sql') juil. 10, 2013 4:44:53 PM com.googlecode.flyway.core.util.scanner.ClassPathScanner findResourceNames FINE: Unable to determine URL for classpath location: com/me/myapp/sql/migration (ClassLoader: java.net.URLClassLoader@6458c2) juil. 10, 2013 4:44:53 PM com.googlecode.flyway.core.util.scanner.ClassPathScanner scanForClasses FINE: Scanning for classes at 'com/me/myapp/sql/migration' (Implementing: 'com.googlecode.flyway.core.api.migration.jdbc.JdbcMigration') juil. 10, 2013 4:44:53 PM com.googlecode.flyway.core.util.scanner.ClassPathScanner findResourceNames FINE: Unable to determine URL for classpath location: com/me/myapp/sql/migration (ClassLoader: java.net.URLClassLoader@6458c2) </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload