Skip to content
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

Use compatible liquibase-hibernate5 and liquibase versions #9807

Closed
1 task done
clakech opened this issue May 28, 2019 · 2 comments
Closed
1 task done

Use compatible liquibase-hibernate5 and liquibase versions #9807

clakech opened this issue May 28, 2019 · 2 comments

Comments

@clakech
Copy link
Contributor

clakech commented May 28, 2019

Overview of the issue

liquibase-hibernate5 version 3.6 (used by jhipster 6.0.1) does not support liquibase 3.6 (used by jhipster 6.0.1)

See the release note: https://github.com/liquibase/liquibase-hibernate/releases/tag/liquibase-hibernate5-3.7

Support for Liquibase 3.6.x
Support for Bean validation annotation
Better handling of indexes and constraints
Better handling of physicalNamingStrategy
Support for using sequence start values

This leads to an error using liquibase:diff

[ERROR] Failed to execute goal org.liquibase:liquibase-maven-plugin:3.6.3:diff (default-cli) on project api: Error setting up or running Liquibase: org.hibernate.boot.MappingException: Unable to perform unmarshalling at line number 3 and column 40. Message: élément inattendu (URI : "http://www.hibernate.org/xsd/orm/hbm", local : "hibernate-mapping"). Les éléments attendus sont <{}hibernate-mapping> : origin(envers): UnmarshalException -> [Help 1]
Motivation for or Use Case

We should use compatible versions between dependencies

Reproduce the error
Related issues
Suggest a Fix

Update to liquibase-hibernate5 version 3.7

JHipster Version(s)

6.0.1

JHipster configuration
Browsers and Operating System
  • Checking this box is mandatory (this is just to show you read everything)

Sorry for the quick dirty issue, I may be able to provide more context later

@pmverma
Copy link
Member

pmverma commented May 29, 2019

Last time we had this similar problem and was fixed in #9695

Please provide details steps to reproduce.

Updating to liquibase-hibernate5 version 3.7 didn't help, see in the #9740 (comment)

Did your code successfully run with your suggested fix?

@clakech
Copy link
Contributor Author

clakech commented May 30, 2019

W00t trying to reproduce this in a brand new project from scratch and bOOm, found an issue in my project : bad merge on last jhi update and my pom.xml was not following jhi !

A quick patch solve this issue (add this dependency into liquibase-maven-plugin hibernate-core${hibernate-core.version})

@clakech clakech closed this as completed May 30, 2019
@pascalgrimaud pascalgrimaud added this to the 6.1.0 milestone Jun 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants