Hi,
I'm trying to configure the Maven plugin to use a changelog from the current project classpath, instead of pointing directly to the file, but I can't seem to get it working. My plugin configuration is:
- <plugin>
- <groupId>org.liquibase</groupId>
- <artifactId>liquibase-maven-plugin</artifactId>
- <version>2.0.5</version>
- <configuration>
- <changeLogFile>/com/company/model/db.changelog-master.xml</changeLogFile>
- <driver>org.h2.Driver</driver>
- <url>jdbc:h2:/opt/company/databases/db</url>
- </configuration>
- </plugin>
Is there a way to configure the Maven plugin to lookup the changelog file from the classpath ?
I need to do so because I also run liquibase outside Maven (on the same database) using a changelog from the classpath, and if I try to run it later from Maven using /src/main/resources/... then the changelog file paths are not the same, and liquibase tries to recreate the tables from scratch.
Thanks,
Nico