Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flyway didn't works using fast-jar #9513

Closed
loicmathieu opened this issue May 21, 2020 · 0 comments · Fixed by #9514
Closed

Flyway didn't works using fast-jar #9513

loicmathieu opened this issue May 21, 2020 · 0 comments · Fixed by #9514
Assignees
Labels
area/flyway kind/bug Something isn't working
Milestone

Comments

@loicmathieu
Copy link
Contributor

Describe the bug
Flyway didn't work using the new fast-jar functionality.

When using the following config property

quarkus.package.type=fast-jar

Flyway generates a WARNING :

WARN  [org.fly.cor.int.sca.cla.ClassPathScanner] (main) Unable to resolve location classpath:db/migration. Note this warning will become an error in Flyway 7.

Expected behavior
As with the normal Quarkus runner JAR, Flyway should find and execute the migration scripts.

Actual behavior
Flyway didn't find the migration files inside the classpath.
They are located inside src/main/resources/db/migration.

WARN  [org.fly.cor.int.sca.cla.ClassPathScanner] (main) Unable to resolve location classpath:db/migration. Note this warning will become an error in Flyway 7.

Configuration

# Add your application.properties here, if applicable.
quarkus.package.type=fast-jar

Environment (please complete the following information):

  • Output of uname -a or ver: Linux 5.4.0-29-generic testing #33-Ubuntu SMP Wed Apr 29 14:32:27 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
  • Output of java -version: openjdk version "11.0.5" 2019-10-15
  • Quarkus version or git rev: 1.5.0.CR1
  • Build tool (ie. output of mvnw --version or gradlew --version):Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
@loicmathieu loicmathieu added the kind/bug Something isn't working label May 21, 2020
@geoand geoand self-assigned this May 21, 2020
geoand added a commit to geoand/quarkus that referenced this issue May 21, 2020
geoand added a commit to geoand/quarkus that referenced this issue May 21, 2020
geoand added a commit to geoand/quarkus that referenced this issue May 21, 2020
stuartwdouglas added a commit that referenced this issue May 22, 2020
Ensure that RunnerClassloader can read directory resources
@gsmet gsmet added this to the 1.5.0.Final milestone May 26, 2020
gsmet pushed a commit to gsmet/quarkus that referenced this issue May 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/flyway kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants