Liquibase 3.3.3 refusing to run “due to maven configuration”

谁说胖子不能爱 提交于 2019-12-24 02:54:07

问题


Did something change in liquibase between version 2 and version 3?

I have the following in my pom file...

        <plugin>
            <groupId>org.liquibase</groupId>
            <artifactId>liquibase-maven-plugin</artifactId>
            <version>3.3.3</version>

            <configuration>
                <changeLogFile>src/main/resources/liquibase/liquibase-changesets.xml</changeLogFile>
                <driver>${db.liquibase.driver}</driver>
                <username>${db.liquibase.username}</username>
                <password>${db.liquibase.password}</password>
                <url>${db.liquibase.url}</url>
                <promptOnNonLocalDatabase>${db.liquibase.promptOnNonLocal}</promptOnNonLocalDatabase>
                <verbose>true</verbose>
            </configuration>


            <executions>
                <execution>
                    <phase>process-resources</phase>
                    <goals>
                        <goal>update</goal>
                    </goals>
                </execution>
            </executions>

            <dependencies>
                <dependency>
                    <groupId>postgresql</groupId>
                    <artifactId>postgresql</artifactId>
                    <version>9.1-901.jdbc4</version>
                </dependency>
            </dependencies>
        </plugin>

And I get the following when I run liquibase:update...

------------------------------------------------------------------------
Building ********** 1.0-SNAPSHOT
------------------------------------------------------------------------

--- liquibase-maven-plugin:3.3.3:update (default-cli) @ ********** ---
------------------------------------------------------------------------
Liquibase skipped due to maven configuration
------------------------------------------------------------------------
BUILD SUCCESS

This runs perfectly well if I revert to using version 2.0.5 of the liquibase plugin.

Can anyone enlighten me as to what I'm doing wrong?


回答1:


Check here: CORE-2360 It looks like <skip> is set to true by default in 3.3.3 version. Just use 3.3.4 and it should be OK.



来源:https://stackoverflow.com/questions/30894421/liquibase-3-3-3-refusing-to-run-due-to-maven-configuration

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!