Download CSV files regarding change file

I have the following problem with Liquibase 3.1.1: I would like to apply Liquibase in the following project structure:

database
 - v1
   - data
     - example.csv
   - changelog01.xml
   - changelog02.xml
 - v2
   - changelog01.xml
   - changelog02.xml
 - changelog.xml

project
 - moduleA
 - moduleB
   - pom.xml

I am trying to use the Liquibase plugin in module B, so I added it to pom.xml. Among other things, I indicated the path to the changes file in the plugin configuration. The change file is located in the directcory database. For different versions, there are several subfiles that are included in the main change file. Subfiles (e.g. changelog01.xml) load data from CSV files.

I would like to indicate the path to the CSV files relative to the path of the change file, but the following does not work because the CSV file was not found:

<loadData tableName="example" file="v1/data/example.csv" encoding="UTF-8" separator=";">
+3
source share
1 answer

Liquibase. . : http://blog.liquibase.org/2014/11/liquibase-3-3-0-released.html

[CORE-549] - relativeToChangelogFile loadData, loadUpdateData, SQLFILE

, XML- 3.3:

<xsi:schemaLocation="
    http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.3.xsd
               ">
+2

All Articles