【发布时间】:2023-03-22 09:49:01
【问题描述】:
我正在使用 flyway 迁移我的 SQL 脚本。我已将 flyway 配置文件配置为指向保存迁移 .sql 脚本的 /tmp/sql 目录。
现在,当我运行 flyway 时,它给了我以下错误:
ERROR: Unable to scan for SQL migrations in location: classpath:tmp/sql"/>
ERROR: Caused by: org.flywaydb.core.api.FlywayException: Unable to determine URL for classpath location: tmp/sql"/> (ClassLoader: java.net.URLClassLoader@2da679b7)
ERROR: Occured in org.flywaydb.core.internal.util.scanner.classpath.ClassPathScanner.getLocationUrlsForPath() at line 192
现在,如果我让 flyway.locations 属性不变并将我的 sql 迁移脚本保留在文件系统中:Flyway-INSTALL-DIR/sql 它工作正常。
谁能告诉我可能是什么问题?
我想将 sql 迁移脚本保存在单独的位置并尝试从那里迁移。
谢谢, 马尼什·乔希
【问题讨论】: