运行3.2版时出现错误
WARN liquibase schema_reference.4:无法读取架构文档'http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.2.xsd',因为1)找不到该文档;2)无法读取该文档;3)该文档的根元素不是。
当我查找http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.2.xsd时,它不在那里,尽管http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.1.xsd在那里。
我遇到了这个https://liquibase.jira.com/browse/CORE-1840,我解释说你不需要访问互联网就可以获得dbchangelog-3.2.xsd。当互联网可用,但.xsd不在那里时,它似乎没有帮助。
我已经恢复到3.1,但我想知道3.2问题的根本原因。
发布于 2019-04-01 16:52:25
将liquibase版本更新到最新版本解决了我的问题
<dependency>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-maven-plugin</artifactId>
<version>3.6.3</version>
</dependency>发布于 2014-10-15 22:13:06
我通过将模式与我的应用程序一起分发并在本地引用它(相对路径)来解决它。在下面的示例中,我将架构文件放在与changelog相同的文件夹中。
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog dbchangelog-3.1.xsd">
<!-- all the things -->
</databaseChangeLog>发布于 2015-09-07 01:54:04
Liquibase不会在互联网上寻找xsd。http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.2.xsd将替换为指向java资源的路径
有关更多详细信息,请访问here
https://stackoverflow.com/questions/24610707
复制相似问题