When i run maven build command in intellij Idea , everything works perfectly . But when i try to run \"mvn clean package\" without IDE using maven console i get an error sa
This is a known-bug observed on spring-boot 1.4 versions, wasn't seen on 1.3.x versions as it was silently swallowed.
As a workaround, you can switch-off spring-boot auto-configuration of Hibernate by adding the below changes.
@EnableAutoConfiguration(exclude = HibernateJpaAutoConfiguration.class) to you application classspring.data.jpa.repositories.enabled=false to your application.properties/yml fileRefer link for more details
Hope this helps and good luck!