Flyway Ant tries to open .sql file as a zip, fails with ZipException -


i trying use flyway in ant project run ddl scripts. managed configure classpath flyway sees migration scripts. when run flyway:migrate task, exception:

unable obtain resource (...)/src/ddl/v1__create_tables_logging.sql: java.util.zip.zipexception: error in opening zip file [flyway:migrate] unable obtain resource (...)/src/ddl/v1__create_tables_logging.sql:  [flyway:migrate] java.util.zip.zipexception: error in opening zip file 

there suggestion @ end:

[flyway:migrate] possible solution: run ant javac , copy tasks first flyway can find migrations 

but project not java application, have no java sources compiled javac. flyway need have migration scripts packed in jar? can't run text files sql statements?

unfortunately, didn't provide configuration have, without it's hard tell, causes issue.

but seems odd me, not using location property of task, classpath. try specify directory migration scripts follows:

<flyway:migrate>     <locations>         <location path="path/to/migrations"/>     </locations>     ... </flyway:migrate> 

Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -