New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
investigation not easy when Liquibase is activated before Pre-Liquibase #5
Comments
So, in essence you are saying that the source code generated by JHipster configures a bean of type If so, it makes sense. Pre-Liquibase auto-configuration will back-off if it discovers that a bean of type The morale is: If you are configuring There probably should be an example of using manual bean configuration with Pre-Lquibase ...when I have the time. |
Yes you assume correctly about the role of generated LiquibaseConfiguration.java . |
It's not a real issue but a behavior of the library.
In the context of a simple jhipster/postgresql generated application 7.8.1, liquibase is already in place which is nice.
Unfortunately a LiquibaseConfiguration.java file is generated and prevents in my case the execution of pre-liquibase "Create schema"script.
If possible, that could be nice to have a more explicit warning or logs to investigate such case that liquibase was pre-loaded.
In my case, investigation was made from activation of : org.springframework.boot.autoconfigure: DEBUG
that provides this information :
PreLiquibaseAutoConfiguration: Did not match: - @ConditionalOnMissingBean (types: liquibase.integration.spring.SpringLiquibase,net.lbruun.springboot.preliquibase.PreLiquibase; SearchStrategy: all) found beans of type 'liquibase.integration.spring.SpringLiquibase' liquibase (OnBeanCondition) Matched: - @ConditionalOnClass found required classes 'liquibase.integration.spring.SpringLiquibase', 'liquibase.change.DatabaseChange' (OnClassCondition)
Solution if anyone face this problem : simply remove LiquibaseConfiguration.java from jhipster generated code and
rely on your jhipster application-dev.yml configuration file to setup preliquibase and liquibase.
Thanks lbruun for the library. I let you close the issue once you got this suggestion.
The text was updated successfully, but these errors were encountered: