How to configure a classpath for custom Liquibase migrations for the Liquibase update dialog in the IDE UI?

Hi everyone,

in the database section of IDEA there's a context menu to apply Liquibase updates in my projects, because I use Liquibase in those. Though, when doing so, I get a ClassNotFoundException, because I have implemented a custom migration in Java, which is referenced in the changelog, but obviously not part of the classpath IDEA builds when starting Liquibase. without IDEA, Liquibase is used as part of some Spring Boot application during startup, so everythign just works, because the class is part of the classpath then.

How is this supposed to work with IDEA context menu? Is there some setting to maintain the classpath? I don't see any and it would anyway be better to somehow “link” to the default project classpath or something.

Thanks!

0

Please sign in to leave a comment.