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)


Solutions on the web4891

Solution icon of github
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

Solution icon of github
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

Solution icon of github
via GitHub by xiaofengli
, 11 months ago
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.

Solution icon of stackoverflow
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.

Solution icon of stackoverflow
Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.5:sonar (default-cli) on project XXXXXXXXXXX: Fail to decorate 'org.sonar.api.resources.File@18260be[key=src/main/java/xxxxxxxxx/model/BaseEntity.java,path=src/main/java/xxxxxxxxx/model/BaseEntity.java,filename=BaseEntity.java,language=Java]'

Solution icon of github
via GitHub by carlskii
, 1 year ago
Failed to execute goal org.apache.maven. plugins:maven-compiler-plugin:3.1:compile (default-compile) on project keywhiz-api: Compilation failure

Solution icon of github
Failed to execute goal org.flywaydb:flyway-maven-plugin:4.0.3:info (default-cli) on project ers: org.flywaydb.core.api.FlywayException: Unable to obtain Jdbc connection from DataSource (jdbc:postgresql://server-db:5432/devdb) for user 'user': FATAL: password authentication failed for user "user"

Solution icon of github
via GitHub by subodhchhabra
, 1 year ago
Failed to execute goal org.flywaydb:flyway-maven-plugin:3.1:migrate (default-cli) on project AutomatedDBDeploy: org.flywaydb.core.api.FlywayException: Unable to obtain Jdbc connection from DataSource (jdbc:oracle:thin:<SCHEMA>/cps@//<HOST>:1521/<DB>) for user '<SCHEMA>': IO Error: Connection reset

Solution icon of stackoverflow
via Stack Overflow by user3879057
, 11 months ago
Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.6:resources (default- resources) on project anuragropu: Error loading property file 'D:\...\src\main\environments\${env}.properties'

Solution icon of github
Failed to execute goal org.flywaydb:flyway-maven-plugin:4.1.0:migrate (default-cli) on project bar: java .lang.NullPointerException

Stack trace

  • 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(MojoExecutor.java:212) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 4 months ago
2 times, 11 months ago
33 more bugmates