繁体   English   中英

updateDatabase 不支持 liquibase 版本 4.17.2 上的驱动程序属性

[英]updateDatabase does not support the driver attribute on liquibase version 4.17.2

我们在使用 Ant 脚本的部署管道中使用 Liquibase 进行数据库更新。 liquibase-core jar 文件的现有版本是 3.8.3,我想升级到 4.17.2。 我将更新版本放入 C:\Installations\apache-ant-1.9.4-bin\apache-ant-1.9.4\lib 文件夹并替换 liquibase-build.xml 文件中的版本,该文件位于 jenkins_files/ant_script/liquibase- build.xml 文件。 上述升级后,我运行该过程,然后出现以下错误:

update-database:

BUILD FAILED
D:\repos\testdomainhorzion1_diageotest_com7470\scripts\rollout\liquibase-build.xml:34: updateDatabase doesn’t support the “driver” attribute"

Total time: 0 seconds
Build step ‘Conditional steps (multiple)’ marked build as failure
Performing Post build task…
Could not match :liquibase.exception : False
Could not match :Build step ‘Execute Windows batch command’ marked build as failure : False
Could not match :UnexpectedLiquibaseException : False
Logical operation result is FALSE

由于 liquibase 不支持 updateDatabase 属性,如何解决此问题?

我们正在尝试更新 Liquibase 构建脚本,但尚未成功。 如果 UpdateDatabase 属性适用于 Liquibase 3.8.3 那么为什么不适用于 Liquibase 4.17.2

@abhishek。 从 3.xx 版升级到 4.xx 版时有一些变化我们在论坛上有一个指南,用于解决从 Liquibase 3.x 升级到 4.x时最常见的问题。

当您引用 /path/to/changelog.xml 或 path/to/changelog.xml 或 changelog.xml 之类的更改日志文件时,Liquibase 总是通过搜索“类路径”中的所有目录和文件来查找这些文件。 文件名开头是否有 / 并不重要,始终会在类路径的条目中查找您提供的路径。

上面的链接中提供了其他信息。

@Tabby:请查看我的代码并让我知道需要进行哪些更改以及在此处输入图像描述

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM