我们有一个使用maven配置的
java应用程序,它使用多个数据库.这是一个应用程序 – 许多架构.
我已经配置了flyway,经过测试并且运行良好,但我的配置仅适用于一个数据库.
这是我用一个模式测试的pom.xml:
4.0.0
com.test
test
0.0.1-SNAPSHOT
org.flywaydb
flyway-maven-plugin
3.0
jdbc:mysql://localhost:3306/argentina
test
test
mysql
mysql-connector-java
5.1.21
mysql
mysql-connector-java
5.1.21
更新:通过使用现在提供的答案,我有以下pom.xml配置了2个架构.
4.0.0
com.test
test
0.0.1-SNAPSHOT
org.flywaydb
flyway-maven-plugin
3.0
argentina
compile
migrate
jdbc:mysql://localhost:3306/argentina
test
test
filesystem:src/main/resources/db/migration
brazil
compile
migrate
jdbc:mysql://localhost:3306/brazil
test
test<