本文介绍了Liquibase 3.3.3拒绝运行“由于行家配置"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

第2版和第3版之间的liquibase有什么变化吗?

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

我的pom文件中包含以下内容...

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>

运行 liquibase:update ...

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

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

如果我恢复使用liquibase插件的2.0.5版本,则运行得很好.

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?

推荐答案

在此处检查: CORE-2360 看起来在 3.3.3 版本中,默认情况下<skip>设置为true.只需使用 3.3.4 ,就可以了.

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

这篇关于Liquibase 3.3.3拒绝运行“由于行家配置"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-01 21:10