liquibase diff failed, Unable to resolve persistence unit root URL

Description

Hi all,

I migrate a project to spring boot 2.2.4 and update the dependencies of liquibase to 3.8.5. On runtime i have no problems, existing migration passed on a multitenancy environment.

I have a problem with the maven goal liquibase:diff. I get this error.

[ERROR] Failed to execute goal org.liquibase:liquibase-maven-plugin:3.8.5:diff (default-cli) on project master-hipster-2: Error setting up or running Liquibase: javax.persistence.PersistenceException: Unable to resolve persistence unit root URL: class path resource [] cannot be resolved to URL because it does not exist -> [Help 1]

i user liquibase-hibernate5 (3.8) maven plugins and liquibase (3.8.5) version. I don't change my configuration at the time. With spring 2.1.11Final, hibernate 5.3.9 and liquibase 3.6.3 (liquibase-hibernate5 / 3.6) i don't get this error.

I can't go back at the previous version, i need Hibernate search 6 and elasticsearch high rest level to connect and request elasticsearch 7.

Did something change in the configuration method ?

i have tried to use a configuration file liquibase.properties placed inside src/main/resources and replace configuration part by this :

 

liquibase.properties file :

 

Nothing change. I don't know if this is a bug or if they have configuration update needed, i don't found something inside the documentation

Thank's for help.

Environment

Spring boot 2.2.4, hibernate 5.4.10.Final

Reporter

Alexis Puskarczyk

Components

Affects versions

Priority

Major
Configure