Spring boot disk does not find Liquibase when starting IntelliJ

I am running Spring 1.2.1.RELEASE with Liquibase in IntelliJ 14:

build.grade

compile("org.springframework.boot:spring-boot-starter-web:$springBootVersion")
 compile('org.liquibase:liquibase-core')

I have project / config / application.properties , which I use to tell Liquibase to create a database and insert data:

spring.jpa.hibernate.ddl-auto=none

spring.datasource.url=jdbc:postgresql://localhost:5432/mydb
spring.datasource.username=xxx
spring.datasource.password=xxx
spring.datasource.driverClassName=org.postgresql.Driver
spring.jpa.database=POSTGRESQL   
spring.jpa.hibernate.hbm2ddl.auto=none
spring.jpa.hibernate.disableConnectionTracking=true
spring.jpa.hibernate.default_schema=xxx

liquibase.change-log:classpath:/db/changelog/db.changelog-master.xml
liquibase.check-change-log-location=true

If I run from the command line:

gradle clean build

I will get all my tables and seed data in my database, as expected. But if I run my main SpringBoot Application class from IntelliJ, tables are not created. I have a log file that shows that Liquibase is used from the command line, but when I run from IntelliJ, Liquibase is not mentioned in this log file. To be sure, I have a duplicate application.properites in project / src / resources .

IntelliJ: enter image description here

, , IntelliJ?

+4

All Articles