spring-bootliquibasechangelog

Specifying files by absolute path was removed in Liquibase 4.0


I am getting the following liquibase error when I run my Spring Boot application:

Specifying files by absolute path was removed in Liquibase 4.0. Please use a relative path or add '/' to the classpath parameter.

Here is the class path in application.yaml:

  liquibase:
    change-log: classpath:db/changelog/db-changelog-master.xml

I also tried:

  liquibase:
    change-log: classpath:/db/changelog/db-changelog-master.xml

Here is folder structure:

enter image description here

Changlog master:

<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
        xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
         http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd">

    <include file="db-changelog-1.0.xml"/>
</databaseChangeLog>

Solution

  • Looks like this was fixed in v4.4.3