Renan Ramos
Renan Ramos

Reputation: 11

How do I set Liquibase with Maven?

I'm working on a project that uses spring-boot, Maven, liquibase. So, I'm getting an error when I run my project and the liquibase configuration is set up to update when maven is executing.

Caused by: java.lang.IllegalStateException: Cannot find changelog location: class path resource [db-scripts/db.master.xml] (please add changelog or check your Liquibase configuration)

I saw that pom.xml have a tag excludes with my DB script's path. I believe that maven is erasing that path before the liquibase run.

Upvotes: 1

Views: 247

Answers (1)

Tomasz Waszczyk
Tomasz Waszczyk

Reputation: 3169

Liquibase uses from changelog files. You had to add the file.

Upvotes: 1

Related Questions