<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-core</artifactId>
<version>4.4.1</version>
<scope>compile</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
<exclusions>
<exclusion>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-core</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
To disable Liquibase in a Spring Boot application, you can exclude the Liquibase dependency from the Spring Boot Starter Data JPA module. This can be achieved by adding the exclusion configuration in the dependencies section of your application’s pom.xml file.
First, you need to make sure that you have added the Liquibase dependency under the dependencyManagement section. This allows you to control the version of Liquibase used in your project.
Next, in the dependencies section, include the spring-boot-starter-data-jpa dependency. Inside this dependency, add the exclusions section with the exclusion for the Liquibase dependency. This exclusion ensures that Liquibase is not included when the Spring Boot Starter Data JPA is resolved.
Here’s an example of how the pom.xml file would look like with the Liquibase exclusion: