title: Why liquibase unable to resolved the db.changelog classpath?
body: <p>Here is the structure, one of the maven dependency jar project, which one contains <strong>liquibase</strong> change logs in <strong>classpath</strong> as following:</p>
  
  <pre><code>chorke─init─change-1.0.00.GA.jar!
   └─ META-INF/
      └─ migrations/
          ├─ db.changelog-master.xml
          ├─ config/
          │   ├─ db.changelog-config.xml
          │   ├─ db.changelog-property.xml
          │   └─ db.changelog-restrict.xml
          └─ change/
              ├─ db.changelog-1.xml
              ├─ db.changelog-2.xml
              ├─ V1/
              │   ├─ db.changelog-1.0.xml
              │   ├─ db.changelog-1.1.xml
              │   ├─ V1.0/
              │   │   ├─ db.changelog-1.0.00.xml
              │   │   ├─ db.changelog-1.0.01.xml
              │   │   ├─ V1.0.00/
              │   │   │   ├─ db.changelog-1.0.00.000.xml
              │   │   │   ├─ db.changelog-1.0.00.001.xml
              │   │   │   ├─ db.changelog-1.0.00.002.xml
              │   │   │   └─ db.changelog-1.0.00.999.xml
              │   │   └─ V1.0.01/
              │   │       ├─ db.changelog-1.0.01.000.xml
              │   │       ├─ db.changelog-1.0.01.001.xml
              │   │       ├─ db.changelog-1.0.01.002.xml
              │   │       └─ db.changelog-1.0.01.999.xml
              │   └─ V1.1/
              │       ├─ db.changelog-1.1.00.xml
              │       ├─ db.changelog-1.1.01.xml
              │       ├─ V1.1.00/db.changelog-1.1.00.###.xml
              │       └─ V1.1.01/db.changelog-1.1.01.###.xml
              └─ V2/
                  ├─ db.changelog-2.#.xml
                  └─ V2.#/V2.#.##/db.changelog-2.#.##.###.xml
  </code></pre>
  
  <p>Here is <strong>db.changelog-master.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
      xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd
      http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd"&gt;
  
      &lt;includeAll path="config" relativeToChangelogFile="true"/&gt;
      &lt;include file="change/db.changelog-1.xml" relativeToChangelogFile="true"/&gt;
      &lt;include file="change/db.changelog-2.xml" relativeToChangelogFile="true"/&gt;
  &lt;/databaseChangeLog&gt;
  </code></pre>
  
  <p>Which one loaded by <strong>spring-boot</strong> <code>application.properties</code>as following </p>
  
  <pre><code>liquibase.change-log=classpath:/META-INF/migrations/db.changelog-master.xml
  </code></pre>
  
  <p>Executed well when it's in the same project. On dependent project it executed as following:</p>
  
  <ol>
  <li><strong><em>DATABASECHANGELOG</strong> table created</em></li>
  <li><strong><em>DATABASECHANGELOGLOCK</strong> table created</em></li>
  <li><em>But no <strong>update migration</strong> performed!</em></li>
  </ol>
  
  <p>When <strong>db.changelog-master.xml</strong> loaded by <strong>liquibase maven plugin</strong> as following:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;!-- intentionally configuration skipped --&gt;
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.chorke.init&lt;/groupId&gt;
              &lt;artifactId&gt;chorke-init-change&lt;/artifactId&gt;
              &lt;version&gt;1.0.00.GA&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.liquibase&lt;/groupId&gt;
                  &lt;artifactId&gt;liquibase-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;3.5.3&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;propertyFileWillOverride&gt;true&lt;/propertyFileWillOverride&gt;
                      &lt;promptOnNonLocalDatabase&gt;false&lt;/promptOnNonLocalDatabase&gt;
                      &lt;changeLogFile&gt;classpath:/META-INF/migrations/db.changelog-master.xml&lt;/changeLogFile&gt;
                      &lt;propertyFile&gt;${project.build.directory}/test-classes/liquibase-update.properties&lt;/propertyFile&gt;
                  &lt;/configuration&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;phase&gt;package&lt;/phase&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;update&lt;/goal&gt;
                          &lt;/goals&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
                  &lt;dependencies&gt;
                      &lt;dependency&gt;
                          &lt;groupId&gt;org.yaml&lt;/groupId&gt;
                          &lt;artifactId&gt;snakeyaml&lt;/artifactId&gt;
                          &lt;version&gt;1.14&lt;/version&gt;
                      &lt;/dependency&gt;
                  &lt;/dependencies&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>Error with the message:</p>
  
  <pre><code>Failed to execute goal
  org.liquibase:liquibase-maven-plugin:3.5.3:update (default) on project
  chorke-init-migrat: Error setting up or running Liquibase:
  classpath:/META-INF/migrations/db.changelog-master.xml does not exist
  </code></pre>
  
  <p>In this situation your guideline expected for error free <strong>liquibase migration</strong> for the dependent project those are using <strong>spring-boot</strong> or <strong>liquibase-maven-plugin</strong></p>