title: Error on integration of liquibase with Spring Boot 2
body: <p>I am working on a Spring Boot project, and i am asked to call a sql file using liquibase.</p>
  
  <p>The sql file contains scripts for Spring Quartz tables configuration.</p>
  
  <p>Here is the POM file:</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
     &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
     &lt;groupId&gt;com.sap.lsm&lt;/groupId&gt;
     &lt;artifactId&gt;SAPLicencesAndSecurityManagement&lt;/artifactId&gt;
     &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
     &lt;packaging&gt;war&lt;/packaging&gt;
     &lt;name&gt;SAPLicencesAndSecurityManagement&lt;/name&gt;
     &lt;parent&gt;
           &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
           &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
           &lt;version&gt;2.0.1.RELEASE&lt;/version&gt;
           &lt;relativePath /&gt; &lt;!-- lookup parent from repository --&gt;
     &lt;/parent&gt;
  
     &lt;properties&gt;
           &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
           &lt;project.reporting.outputEncoding&gt;UTF-8&lt;/project.reporting.outputEncoding&gt;
           &lt;java.version&gt;1.8&lt;/java.version&gt;
           &lt;m2eclipse.wtp.contextRoot&gt;/&lt;/m2eclipse.wtp.contextRoot&gt;
     &lt;/properties&gt;
  
     &lt;dependencies&gt;
  
      &lt;dependency&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
  
                  &lt;exclusions&gt;
              &lt;exclusion&gt;
                  &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
                  &lt;artifactId&gt;*&lt;/artifactId&gt;
              &lt;/exclusion&gt;
              &lt;exclusion&gt;
                  &lt;groupId&gt;ch.qos.logback&lt;/groupId&gt;
                  &lt;artifactId&gt;*&lt;/artifactId&gt;
              &lt;/exclusion&gt;
                         &lt;exclusion&gt;
                                &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
                                &lt;artifactId&gt;*&lt;/artifactId&gt;
                         &lt;/exclusion&gt;
  
                  &lt;/exclusions&gt;
           &lt;/dependency&gt;
           &lt;dependency&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-starter-data-jpa&lt;/artifactId&gt;
  
                  &lt;exclusions&gt;
                         &lt;exclusion&gt;
                                &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
                                &lt;artifactId&gt;*&lt;/artifactId&gt;
                         &lt;/exclusion&gt;
              &lt;exclusion&gt;
                  &lt;groupId&gt;ch.qos.logback&lt;/groupId&gt;
                  &lt;artifactId&gt;*&lt;/artifactId&gt;
              &lt;/exclusion&gt;
                         &lt;exclusion&gt;
                                &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
                                &lt;artifactId&gt;*&lt;/artifactId&gt;
                         &lt;/exclusion&gt;
                  &lt;/exclusions&gt;
           &lt;/dependency&gt;
  
           &lt;dependency&gt;
                  &lt;groupId&gt;mysql&lt;/groupId&gt;
                  &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;
                  &lt;scope&gt;runtime&lt;/scope&gt;
                  &lt;exclusions&gt;
                         &lt;exclusion&gt;
                                &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
                                &lt;artifactId&gt;*&lt;/artifactId&gt;
                         &lt;/exclusion&gt;
                         &lt;exclusion&gt;
                                &lt;groupId&gt;ch.qos.logback&lt;/groupId&gt;
                                &lt;artifactId&gt;*&lt;/artifactId&gt;
                         &lt;/exclusion&gt;
                         &lt;exclusion&gt;
                                &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
                                &lt;artifactId&gt;*&lt;/artifactId&gt;
                         &lt;/exclusion&gt;
                  &lt;/exclusions&gt;
           &lt;/dependency&gt;
  
           &lt;dependency&gt;
           &lt;groupId&gt;com.google.guava&lt;/groupId&gt;
           &lt;artifactId&gt;guava&lt;/artifactId&gt;
           &lt;version&gt;19.0&lt;/version&gt;
           &lt;/dependency&gt;
  
                  &lt;dependency&gt;
              &lt;groupId&gt;com.google.code.gson&lt;/groupId&gt;
              &lt;artifactId&gt;gson&lt;/artifactId&gt;
          &lt;/dependency&gt; 
  
  
          &lt;!-- javax mail --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;javax.mail&lt;/groupId&gt;
          &lt;artifactId&gt;mail&lt;/artifactId&gt;
          &lt;version&gt;1.4.7&lt;/version&gt;
            &lt;exclusions&gt;
              &lt;exclusion&gt;
                  &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
                  &lt;artifactId&gt;*&lt;/artifactId&gt;
              &lt;/exclusion&gt;
              &lt;exclusion&gt;
                  &lt;groupId&gt;ch.qos.logback&lt;/groupId&gt;
                  &lt;artifactId&gt;*&lt;/artifactId&gt;
              &lt;/exclusion&gt;
                         &lt;exclusion&gt;
                                &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
                                &lt;artifactId&gt;*&lt;/artifactId&gt;
                         &lt;/exclusion&gt;
  
                  &lt;/exclusions&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-context-support&lt;/artifactId&gt;
            &lt;exclusions&gt;
              &lt;exclusion&gt;
                  &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
                  &lt;artifactId&gt;*&lt;/artifactId&gt;
              &lt;/exclusion&gt;
              &lt;exclusion&gt;
                  &lt;groupId&gt;ch.qos.logback&lt;/groupId&gt;
                  &lt;artifactId&gt;*&lt;/artifactId&gt;
              &lt;/exclusion&gt;
                         &lt;exclusion&gt;
                                &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
                                &lt;artifactId&gt;*&lt;/artifactId&gt;
                         &lt;/exclusion&gt;
  
                  &lt;/exclusions&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-tx&lt;/artifactId&gt;
            &lt;exclusions&gt;
              &lt;exclusion&gt;
                  &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
                  &lt;artifactId&gt;*&lt;/artifactId&gt;
              &lt;/exclusion&gt;
              &lt;exclusion&gt;
                  &lt;groupId&gt;ch.qos.logback&lt;/groupId&gt;
                  &lt;artifactId&gt;*&lt;/artifactId&gt;
              &lt;/exclusion&gt;
                         &lt;exclusion&gt;
                                &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
                                &lt;artifactId&gt;*&lt;/artifactId&gt;
                         &lt;/exclusion&gt;
  
                  &lt;/exclusions&gt;
      &lt;/dependency&gt;
  
      &lt;!-- Quartz framework --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.quartz-scheduler&lt;/groupId&gt;
          &lt;artifactId&gt;quartz&lt;/artifactId&gt;
          &lt;version&gt;2.2.1&lt;/version&gt;
            &lt;exclusions&gt;
              &lt;exclusion&gt;
                  &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
                  &lt;artifactId&gt;*&lt;/artifactId&gt;
              &lt;/exclusion&gt;
              &lt;exclusion&gt;
                  &lt;groupId&gt;ch.qos.logback&lt;/groupId&gt;
                  &lt;artifactId&gt;*&lt;/artifactId&gt;
              &lt;/exclusion&gt;
                         &lt;exclusion&gt;
                                &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
                                &lt;artifactId&gt;*&lt;/artifactId&gt;
                         &lt;/exclusion&gt;
  
                  &lt;/exclusions&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
           &lt;groupId&gt;org.liquibase&lt;/groupId&gt;
           &lt;artifactId&gt;liquibase-core&lt;/artifactId&gt;
          &lt;version&gt;3.3.5&lt;/version&gt;
            &lt;exclusions&gt;
              &lt;exclusion&gt;
                  &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
                  &lt;artifactId&gt;*&lt;/artifactId&gt;
              &lt;/exclusion&gt;
  
            &lt;/exclusions&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework&lt;/groupId&gt;
          &lt;artifactId&gt;spring-web&lt;/artifactId&gt;
          &lt;type&gt;jar&lt;/type&gt;
          &lt;scope&gt;compile&lt;/scope&gt;
            &lt;exclusions&gt;
              &lt;exclusion&gt;
                  &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
                  &lt;artifactId&gt;*&lt;/artifactId&gt;
              &lt;/exclusion&gt;
              &lt;exclusion&gt;
                  &lt;groupId&gt;ch.qos.logback&lt;/groupId&gt;
                  &lt;artifactId&gt;*&lt;/artifactId&gt;
              &lt;/exclusion&gt;
                         &lt;exclusion&gt;
                                &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
                                &lt;artifactId&gt;*&lt;/artifactId&gt;
                         &lt;/exclusion&gt;
  
                  &lt;/exclusions&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-freemarker&lt;/artifactId&gt;
      &lt;/dependency&gt;
  
     &lt;/dependencies&gt;
  
  
     &lt;build&gt;
           &lt;finalName&gt;SAPLicencesAndSecurityManagement&lt;/finalName&gt;
           &lt;plugins&gt;
                  &lt;plugin&gt;
                         &lt;groupId&gt;com.sap.lsm&lt;/groupId&gt;
                         &lt;artifactId&gt;SAPLicencesAndSecurityManagement&lt;/artifactId&gt;
                         &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
                  &lt;/plugin&gt; 
  
           &lt;/plugins&gt;
     &lt;/build&gt;
  </code></pre>
  
  <p></p>
  
  <p>the call of sql file is made through a yaml file, named <code>db.changelog-master</code>:</p>
  
  <pre><code>[![db.changelog-master.yaml][1]][1]
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/zqDei.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zqDei.png" alt="enter image description here"></a></p>
  
  <p>When i run the server, the console displays an error as follow :</p>
  
  <pre><code>15:44:36.602 [localhost-startStop-1] ERROR com.mysql.jdbc.log.StandardLogger - Mon Jun 11 15:44:36 WAT 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
  15:44:36.968 [HikariPool-1 connection adder] ERROR com.mysql.jdbc.log.StandardLogger - Mon Jun 11 15:44:36 WAT 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
  15:44:36.997 [HikariPool-1 connection adder] ERROR com.mysql.jdbc.log.StandardLogger - Mon Jun 11 15:44:36 WAT 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
  15:44:37.008 [HikariPool-1 connection adder] ERROR com.mysql.jdbc.log.StandardLogger - Mon Jun 11 15:44:37 WAT 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
  15:44:39.081 [localhost-startStop-1] ERROR org.springframework.boot.SpringApplication - Application run failed
  org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liquibase' defined in class path resource [org/springframework/boot/autoconfigure/liquibase/LiquibaseAutoConfiguration$LiquibaseConfiguration.class]: Invocation of init method failed; nested exception is liquibase.exception.ValidationFailedException: Validation Failed:
   1 change sets check sum
        classpath:/db/changelog/db.changelog-master.yaml::2::marouane is now: 7:18262c5c5851874dff0c954d60b47d59
  
  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1702)
  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:579)
  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:501)
  at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317)
  at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
  at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
  at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
  at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:304)
  at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
  at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1089)
  at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:859)
  at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
  at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140)
  at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)
  at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:395)
  at org.springframework.boot.SpringApplication.run(SpringApplication.java:327)
  at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.run(SpringBootServletInitializer.java:155)
  at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.createRootApplicationContext(SpringBootServletInitializer.java:135)
  at org.springframework.boot.web.servlet.support.SpringBootServletInitializer.onStartup(SpringBootServletInitializer.java:87)
  at org.springframework.web.SpringServletContainerInitializer.onStartup(SpringServletContainerInitializer.java:172)
  at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5196)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419)
  at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)
  at java.util.concurrent.FutureTask.run(FutureTask.java:266)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  at java.lang.Thread.run(Thread.java:748)
  Caused by: liquibase.exception.ValidationFailedException: Validation Failed:
   1 change sets check sum
        classpath:/db/changelog/db.changelog-master.yaml::2::marouane is now: 7:18262c5c5851874dff0c954d60b47d59
  
  at liquibase.changelog.DatabaseChangeLog.validate(DatabaseChangeLog.java:196)
  at liquibase.Liquibase.update(Liquibase.java:196)
  at liquibase.integration.spring.SpringLiquibase.performUpdate(SpringLiquibase.java:415)
  at liquibase.integration.spring.SpringLiquibase.afterPropertiesSet(SpringLiquibase.java:379)
  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1761)
  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1698)
  ... 27 common frames omitted
  </code></pre>