'changelog.xml if present inside a jar and wrapped in EAR throws Error "Specifying files by absolute path was removed in Liquibase 4.0...."
We are migrating liquibaes from 3.10.3 to 4.7.1. My changelog.xml file is present in JAR file inside an ear which is set as classpath parameter. After migration to 4.7.1 i am always seeing the error “Specifying files by absolute path was removed in Liquibase 4.0. Please use a relative path or add ‘/’ to the classpath parameter.”. And no matter if i set the --changeLogFile=/changelog.xml or --changeLogFile=changelog.xml it is still failing. It seems liquibase is reading changelog.xml only if its available directly in the ear. Is there any other way to configure the changeLogFile parameter with out making changes to the ear file? This is the Liquibase cli command i use to run (rest of the parameters are defined in properties file)
liquibase --logLevel=INFO --classpath=myapp.ear --changeLogFile=changelog.xml update
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
