0
我有我的標準飛橋配置在我的POM文件中,我試圖覆蓋通過系統屬性,如here所述。Flyway似乎不是重寫屬性
這是我在POM文件中的配置:
<plugin>
<groupId>com.googlecode.flyway</groupId>
<artifactId>flyway-maven-plugin</artifactId>
<version>2.1.1</version>
<configuration>
<url>dbUrl</url>
<user>dbUser</user>
<password>dbPass</password>
<schemas>
<schema>core</schema>
<schema>public</schema>
</schemas>
</configuration>
</plugin>
而下面是我在命令行運行:
mvn clean compile flyway:migrate -Dflyway.url=anotherDbUrl -Dflyway.user=anotherDbUser -Dflyway.password=anotherDbPass
在上面的鏈接文檔說System properties > Maven properties > Plugin configuration
。我錯過了什麼嗎?
請加上你得到的錯誤:) – mebada
@mebala沒有錯誤,它只是執行與pom文件中的設置。 – Migore