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!

Please sign in to leave a comment.
Hi,
i am experiencing a similiar/related/same issue.
i am running in an on premise environment, without internet connection, i need to add my sql .jar manually.
how can i add a .jar file to the classpath, Env variable LIQUIBASE_CLASSPATH is not working, i am also unable to add a command line parameter to the liquibase call
Hi,
Have you tried placing your
.jar
driver file in the$LIQUIBASE_HOME/lib
directory? Liquibase automatically loads any JARs found in itslib
directory at runtime.Here’s the official documentation that covers this:
https://docs.liquibase.com/workflows/liquibase-community/adding-and-updating-liquibase-drivers.html
Let me know if that works.