If liquibase.jar is nested in another jar/war/ear, it fails to start with a "cannot find implementation of liquibase.logging.Logger" error

Description

From http://stackoverflow.com/questions/24928673/spring-boot-jetty-liquibase-jar-not-find-implementation-of-liquibase-logging :

boot '1.1.3.RELEASE' app with gradle 2.0 and when I fire ./gradlew bootRun everything works fine but when I fire the app with java -jar -Dspring.profile.active=prod build/lib/myapp.jar I see always an error:

Caused by: liquibase.exception.ServiceNotFoundException: liquibase.exception.ServiceNotFoundException: Could not find implementation of liquibase.logging.Logger at liquibase.servicelocator.ServiceLocator.newInstance(ServiceLocator.java:192) at liquibase.logging.LogFactory.getLog(LogFactory.java:44) ... 38 more

Environment

Applications with nested jars, including spring-boot and jhipster

Reporter

Nathan Voxland

Fix versions

Affects versions

Priority

Major
Configure