Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Flyway Support #778

@goafabric

Description

@goafabric

Hello,
i tried to get flyway up and running with spring native.
Which is a very important library for us, because it's basically used for every JPA related projected.
So I am wondering, way nobody else already raised an issue.

The problem is, that flyway is not capable of reading the migration scripts:

...
Flyway failed to initialize: none of the following migration scripts locations could be found:
- classpath:db/migration
...

I also tried to have the migration scripts inside the filesystem, at least for a workaround,
but this also did not work

...
caused by: java.lang.NullPointerException: null
at org.flywaydb.core.internal.util.FileCopyUtils.copy(FileCopyUtils.java:124) ~[na:na]
at org.flywaydb.core.internal.util.FileCopyUtils.copyToString(FileCopyUtils.java:84) ~[na:na]
at org.flywaydb.core.internal.license.VersionPrinter.readVersion(VersionPrinter.java:121) ~[na:na]
...

So flyway seems to have some trouble to read files either from the classpath or FS.

Libraries:

  • Spring Boot 2.4.4
  • Spring Native 0.9.2
  • Flyway 7.1.1 (managed by spring boot dependencies)

Metadata

Metadata

Assignees

No one assigned

    Labels

    jvm-reachability-metadataShould be supported via the GraalVM JVM Reachability Metadata Repository once availabletype: compatibilityNative image compatibility issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions