【问题标题】:Flyway seems to not be overriding propertiesFlyway 似乎不是压倒一切的属性
【发布时间】:2013-08-19 15:33:47
【问题描述】:

我的 pom 文件中有标准 flyway 配置,我正在尝试通过系统属性覆盖,如 here 所述。

这是我在 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 &gt; Maven properties &gt; Plugin configuration。我错过了什么吗?

【问题讨论】:

  • 请添加您遇到的错误:)
  • @mebala 没有错误,它只是使用 pom 文件中的设置执行。

标签: windows flyway


【解决方案1】:

很好的收获。这似乎已经中断了。你能提出问题吗?我会在 2.2.1 及时解决这个问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-08-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-09-24
    相关资源
    最近更新 更多