You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to Maven, Liquibase 4.28.0 has a dependency on commons-io:2.16.1, but in the manifest file we can see Import-Package: org.apache.commons.io;resolution:=optional;version="[1.4,2). This causes issues when running an application using OSGi, as it is declared as optional. Additionally, it is the incorrect version of commons-io.
Because of this, when running this on an OSGi application it causes this error to occur.
java.lang.NoClassDefFoundError: org/apache/commons/io/FilenameUtils
at liquibase.changelog.DatabaseChangeLog.normalizePath(DatabaseChangeLog.java:1090)
at liquibase.parser.core.xml.AbstractChangeLogParser.parse(AbstractChangeLogParser.java:20)
at liquibase.Liquibase.getDatabaseChangeLog(Liquibase.java:281)
at liquibase.Liquibase.getDatabaseChangeLog(Liquibase.java:266)
Steps To Reproduce
Run the Liquibase library using OSGi and attempt any operation that uses a class from commons-io like DatabaseChangeLog.normalizePath()
Expected/Desired Behavior
Liquibase manifest declares hard dependency on the correct version of commons-io.
Liquibase Version
4.28.0
Database Vendor & Version
No response
Liquibase Integration
No response
Liquibase Extensions
No response
OS and/or Infrastructure Type/Provider
No response
Additional Context
No response
Are you willing to submit a PR?
I'm willing to submit a PR (Thank you!)
The text was updated successfully, but these errors were encountered:
Search first
Description
According to Maven, Liquibase 4.28.0 has a dependency on commons-io:2.16.1, but in the manifest file we can see
Import-Package: org.apache.commons.io;resolution:=optional;version="[1.4,2)
. This causes issues when running an application using OSGi, as it is declared as optional. Additionally, it is the incorrect version of commons-io.Because of this, when running this on an OSGi application it causes this error to occur.
Steps To Reproduce
Run the Liquibase library using OSGi and attempt any operation that uses a class from commons-io like
DatabaseChangeLog.normalizePath()
Expected/Desired Behavior
Liquibase manifest declares hard dependency on the correct version of commons-io.
Liquibase Version
4.28.0
Database Vendor & Version
No response
Liquibase Integration
No response
Liquibase Extensions
No response
OS and/or Infrastructure Type/Provider
No response
Additional Context
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: