Код: Выделить всё
dell1@dell MINGW64 \~/Documents/Java/penguin (master)
$ mvn flyway:migrate
WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::load has been called by org.fusesource.jansi.internal.JansiLoader in an unnamed module (file:/C:/apache-maven-3.9.9/lib/jansi-2.4.1.jar)
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by com.google.common.util.concurrent.AbstractFuture$UnsafeAtomicHelper (file:/C:/apache-maven-3.9.9/lib/guava-33.2.1-jre.jar)
WARNING: Please consider reporting this to the maintainers of class com.google.common.util.concurrent.AbstractFuture$UnsafeAtomicHelper
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
\[INFO\] Scanning for projects...
\[INFO\]
\[INFO\] ------------------------\< penguin.com:penguin \>-------------------------
\[INFO\] Building penguin 0.0.1-SNAPSHOT
\[INFO\] from pom.xml
\[INFO\] --------------------------------\[ jar \]---------------------------------
\[WARNING\] Parameter 'javaMigrations' is unknown for plugin 'flyway-maven-plugin:10.20.1:migrate (default-cli)'
\[WARNING\] The artifact mysql:mysql-connector-java:jar:8.0.32 has been relocated to com.mysql:mysql-connector-j:jar:8.0.32: MySQL Connector/J artifacts moved to reverse-DNS compliant Maven 2+ coordinates.
\[INFO\]
\[INFO\] --- flyway:10.20.1:migrate (default-cli) @ penguin ---
\[INFO\] ------------------------------------------------------------------------
\[INFO\] BUILD FAILURE
\[INFO\] ------------------------------------------------------------------------
\[INFO\] Total time: 1.439 s
\[INFO\] Finished at: 2025-04-19T10:34:32+05:45
\[INFO\] ------------------------------------------------------------------------
\[ERROR\] Failed to execute goal org.flywaydb:flyway-maven-plugin:10.20.1:migrate (default-cli) on project penguin: org.flywaydb.core.api.FlywayException: No database found to handle jdbc:mysql://localhost:3306/penguin_prod?allowPublicKeyRetrieval=true&useSSL=false -\> \[Help 1\]
\[ERROR\]
\[ERROR\] To see the full stack trace of the errors, re-run Maven with the -e switch.
\[ERROR\] Re-run Maven using the -X switch to enable full debug logging.
\[ERROR\]
\[ERROR\] For more information about the errors and possible solutions, please read the following articles:
\[ERROR\] \[Help 1\] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
4.0.0
org.springframework.boot
spring-boot-starter-parent
3.4.4
penguin.com
penguin
0.0.1-SNAPSHOT
penguin
Demo project for Spring Boot
17
org.springframework.boot
spring-boot-starter-web
org.springframework.boot
spring-boot-starter-test
test
org.flywaydb
flyway-core
mysql
mysql-connector-java
8.0.32
org.flywaydb
flyway-maven-plugin
mysql
mysql-connector-java
8.0.32
jdbc:mysql://localhost:3306/penguin_prod?allowPublicKeyRetrieval=true&useSSL=false
root
******
classpath:db/migration
db.migration
< /code>
my application.properties < /p>
spring.application.name=penguin
spring.datasource.url=jdbc:mysql://localhost:3306/penguin_prod
spring.datasource.username=root
spring.datasource.password=******
spring.flyway.enabled=true
spring.flyway.locations=classpath:db/migration
< /code>
версия MySQL: VER 8.0.39
Java версия: Java 24 2025-03-18 < /p>
Подробнее здесь: https://stackoverflow.com/questions/795 ... -jdbcmysql