IllegalArgumentException when launching application built with Spring Boot Maven Plugin

I have an application that is built into an Uber (fat) jar using the Spring Boot Maven Plugin.

We use the liquibase.integration.commandline.Main class to invoke Liquibase programmatically.

In Main.parseOptions, Liquibase searches for liquibase.properties. When I run this on Windows, it looks for a resource C:…\liquibase.properties using the ClassLoader.

The Spring Boot classloader chokes on this and throw an IllegalArgumentException.

I am quite surprised that no one has reported this yet.

@javastu,

You do need a liquibase.properties file, as noted here:
https://docs.liquibase.com/tools-integrations/springboot/using-springboot-with-maven.html

When you say:

Would you provide the complete logs that shows what’s going on?

Thanks,

Ronak