Span: unable to determine url for class location

I am using flyway to migrate my SQL scripts. I configured the span config file to point to the / tmp / sql directory where I saved the .sql migration scripts.

Now when I run the flyover it gives me below error:

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

      

Now if I allowed the flyway.locations property unchanged and kept my sql migration scripts on the file system: Flyway-INSTALL-DIR / sql works fine.

Can someone please let me know what the problem might be?

I want to keep the sql migration scripts in a separate location and try moving from there.

Thanks, Manish Joshi

+3


source to share


1 answer


Make sure the filesystem is set for flyway.locations: / tmp / sql



+1


source







All Articles