org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.flywaydb:flyway-maven-plugin:3.2:migrate (default) on project keywhiz-model: org.flywaydb.core.api.FlywayException: Found more than one migration with version 3.6 Offenders: -> /root/keywhiz/model/../server/src/main/resources/db/postgres/migration/V3.6__add_accessgrants_index.sql (SQL) -> /root/keywhiz/model/../server/src/main/resources/db/postgres/migration/V3.6__alter_clients_to_add_last_seen.sql (SQL)

GitHub | sureshg | 2 weeks ago
  1. 0

    Postgres flywaydb migration failing.

    GitHub | 2 weeks ago | sureshg
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.flywaydb:flyway-maven-plugin:3.2:migrate (default) on project keywhiz-model: org.flywaydb.core.api.FlywayException: Found more than one migration with version 3.6 Offenders: -> /root/keywhiz/model/../server/src/main/resources/db/postgres/migration/V3.6__add_accessgrants_index.sql (SQL) -> /root/keywhiz/model/../server/src/main/resources/db/postgres/migration/V3.6__alter_clients_to_add_last_seen.sql (SQL)
  2. 0
    Change the <configuration> in pom.xml to use xml parameters instead of the <arguments> list.
  3. 0

    Unable to obtain Jdbc connection from DataSource for user 'root': Could not create connection to database server. NullPointerException -> [Help 1]

    Stack Overflow | 5 months ago | Xiaofeng Li
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.flywaydb:flyway-maven-plugin:4.0.3:migrate (default-cli) on project app: org.flywaydb.core.api.FlywayException: Unable to obtain Jdbc connection from DataSource (jdbc:mysql://localhost:3306/flyway_schema) for user 'root': Could not create connection to database server.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 598#244523009

    GitHub | 5 months ago | xiaofengli
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.flywaydb:flyway-maven-plugin:4.0.3:migrate (default-cli) on project app: org.flywaydb.core.api.FlywayException: Unable to obtain Jdbc connection from DataSource (jdbc:mysql://localhost:3306/) for user 'root': Could not create connection to database server.
  6. 0

    Flyway Migration fails with 'from' in sql script

    GitHub | 1 year ago | canbara
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.flywaydb:flyway-maven-plugin:3.2.1:migrate (default-cli) on project gateway: org.flywaydb.core.internal.dbsupport.FlywaySqlScriptException: Migration V4.0.2.0__flyway_from_issue.sql failed ------------------------------------------------ SQL State : 22019 Error Code : 911 Message : ORA-00911: invalid character Location : /xxxx/src/main/resources/db/localdev/comp_dml/V4.0.2.0__flyway_from_issue.sql (/xxxxx/src/main/resources/db/localdev/comp_dml/V4.0.2.0__flyway_from_issue.sql) Line : 2 Statement : INSERT INTO drb_bundle(BUNDLE, LOCALE, KEY, VALUE, LAST_MODIFIED_TS, USER_ID, CLOB_VALUE) VALUES('PROCESS_INBOUND_EMAIL.EAST', '_', 'from', 'Error', SYSTIMESTAMP, NULL, NULL);

    3 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.apache.maven.lifecycle.LifecycleExecutionException

      Failed to execute goal org.flywaydb:flyway-maven-plugin:3.2:migrate (default) on project keywhiz-model: org.flywaydb.core.api.FlywayException: Found more than one migration with version 3.6 Offenders: -> /root/keywhiz/model/../server/src/main/resources/db/postgres/migration/V3.6__add_accessgrants_index.sql (SQL) -> /root/keywhiz/model/../server/src/main/resources/db/postgres/migration/V3.6__alter_clients_to_add_last_seen.sql (SQL)

      at org.apache.maven.lifecycle.internal.MojoExecutor.execute()
    2. Maven Core
      LifecycleModuleBuilder.buildProject
      1. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
      2. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      3. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      4. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
      5. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
      5 frames