Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-1269

Flyaway fraction does not detect migration scripts in /src/main/resources/db/migration

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Rejected
    • Affects Version/s: 2017.4.0
    • Fix Version/s: 2017.5.0
    • Component/s: core
    • Labels:
      None
    • Sprint:
      2017-Apr-B
    • Steps to Reproduce:
      Hide

      To reproduce clone:
      https://github.com/dekstroza/JEE7/tree/h2-version/swarm-demo-app

      To compile: mvn clean install
      To run: java -jar hops-factory/customer-service/target/customer-service-1.0.1-SNAPSHOT-swarm.jar

      Logs will show:
      2017-04-12 15:43:09,132 WARN [org.flywaydb.core.internal.util.scanner.classpath.ClassPathScanner] (ServerService Thread Pool – 10) Unable to resolve location classpath:db/migration

      Show
      To reproduce clone: https://github.com/dekstroza/JEE7/tree/h2-version/swarm-demo-app To compile: mvn clean install To run: java -jar hops-factory/customer-service/target/customer-service-1.0.1-SNAPSHOT-swarm.jar Logs will show: 2017-04-12 15:43:09,132 WARN [org.flywaydb.core.internal.util.scanner.classpath.ClassPathScanner] (ServerService Thread Pool – 10) Unable to resolve location classpath:db/migration

      Description

      Flyway fraction will not detect any migration scripts nor find classpath db/migration when project has custom Main and is packaged as JAXRSArchive. When starting following log will be present:

      2017-04-12 15:43:09,132 WARN [org.flywaydb.core.internal.util.scanner.classpath.ClassPathScanner] (ServerService Thread Pool – 10) Unable to resolve location classpath:db/migration
      2017-04-12 15:43:09,150 INFO [org.flywaydb.core.internal.command.DbValidate] (ServerService Thread Pool – 10) Successfully validated 0 migrations (execution time 00:00.003s)
      2017-04-12 15:43:09,160 INFO [org.flywaydb.core.internal.metadatatable.MetaDataTableImpl] (ServerService Thread Pool – 10) Creating Metadata table: "PUBLIC"."schema_version"
      2017-04-12 15:43:09,174 INFO [org.flywaydb.core.internal.command.DbMigrate] (ServerService Thread Pool – 10) Current version of schema "PUBLIC": << Empty Schema >>
      2017-04-12 15:43:09,174 INFO [org.flywaydb.core.internal.command.DbMigrate] (ServerService Thread Pool – 10) Schema "PUBLIC" is up to date. No migration necessary.
      2017-04-12 15:43:09,322 INFO [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool – 10) RESTEASY002225: Deploying javax.ws.rs.core.Application: class com.github.dekstroza.hopsfactory.customerservice.CustomerServiceApplication

      No migration scripts will be validated or executed.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                bob.mcwhirter Bob McWhirter
                Reporter:
                dekstroza Dejan Kitic
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: