Looking at the code for CDILiquibase, it checks the liquibase.shouldRun
flag and if it is false, it does not execute.
Your easiest route would be to either set the liquibase.shouldRun
system property to "false", or call
- LiquibaseConfiguration.getInstance().getConfiguration(GlobalConfiguration.class).setShouldRun(false)
from somewhere in your code that executes before the CDI bootstrapping happens, possibly in a class's static{} block?
Nathan
Nathan