I am trying to upgrade from Liquibase 2.0.1 to version 3.0.2, but have run into a build failure. The root exception is a NoSuchMethodError:
Caused by: java.lang.NoSuchMethodError: liquibase.change.AbstractChange.(Ljava/lang/String;Ljava/lang/String;I)V
at liquibase.ext.modifycolumn.ModifyColumnChange.(ModifyColumnChange.java:24)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at liquibase.change.ChangeFactory.register(ChangeFactory.java:61)
at liquibase.change.ChangeFactory.init(ChangeFactory.java:32)
at liquibase.change.ChangeFactory.getInstance(ChangeFactory.java:42)
at liquibase.parser.core.xml.XMLChangeLogSAXHandler.startElement(XMLChangeLogSAXHandler.java:359)
Note that the jars being referenced include:
- org/liquibase/liquibase-maven-plugin/3.0.2/liquibase-maven-plugin-3.0.2.jar
- org/liquibase/ext/modify-column/2.0.0/modify-column-2.0.0.jar
- org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.jar
- org/liquibase/liquibase-core/3.0.2/liquibase-core-3.0.2.jar
- org/yaml/snakeyaml/1.12/snakeyaml-1.12.jar
Is there a solution?
The database is Oracle.