我有一个使用liquibase-core 2.0.3的项目。当我更新到 liquibase-core 3.3.0 时,我收到了很多编译器类未找到以下类的错误。
非常感谢有关它们被替换的位置/内容的信息的任何帮助?
import liquibase.change.core.AnonymousChange;
import liquibase.database.core.MaxDBDatabase;
import liquibase.database.typeconversion.TypeConverter;
import liquibase.database.typeconversion.core.CacheTypeConverter;
import liquibase.database.typeconversion.core.DB2TypeConverter;
import liquibase.database.typeconversion.core.DefaultTypeConverter;
import liquibase.database.typeconversion.core.DerbyTypeConverter;
import liquibase.database.typeconversion.core.FirebirdTypeConverter;
import liquibase.database.typeconversion.core.H2TypeConverter;
import liquibase.database.typeconversion.core.HsqlTypeConverter;
import liquibase.database.typeconversion.core.InformixTypeConverter;
import liquibase.database.typeconversion.core.MSSQLTypeConverter;
import liquibase.database.typeconversion.core.MaxDBTypeConverter;
import liquibase.database.typeconversion.core.MySQLTypeConverter;
import liquibase.database.typeconversion.core.OracleTypeConverter;
import liquibase.database.typeconversion.core.Postgres83TypeConverter;
import liquibase.database.typeconversion.core.PostgresTypeConverter;
import liquibase.database.typeconversion.core.SQLiteTypeConverter;
import liquibase.database.typeconversion.core.SybaseASATypeConverter;
import liquibase.database.typeconversion.core.SybaseTypeConverter;
import liquibase.snapshot.jvm.DB2DatabaseSnapshotGenerator;
import liquibase.snapshot.jvm.DerbyDatabaseSnapshotGenerator;
import liquibase.snapshot.jvm.H2DatabaseSnapshotGenerator;
import liquibase.snapshot.jvm.HsqlDatabaseSnapshotGenerator;
import liquibase.snapshot.jvm.InformixDatabaseSnapshotGenerator;
import liquibase.snapshot.jvm.MSSQLDatabaseSnapshotGenerator;
import liquibase.snapshot.jvm.MySQLDatabaseSnapshotGenerator;
import liquibase.snapshot.jvm.OracleDatabaseSnapshotGenerator;
import liquibase.snapshot.jvm.PostgresDatabaseSnapshotGenerator;
import liquibase.snapshot.jvm.SQLiteDatabaseSnapshotGenerator;
import liquibase.snapshot.jvm.StandardJdbcDatabaseSnapshotGenerator;
MaxDBDatabase 被拉到一个单独的扩展 https://github.com/liquibase/liquibase-maxdb 所以你也需要包含那个 jar。
TypeConverter 代码主要移动到 liquibase.datatype 中的类。
特定于数据库的 SnapshotGenerator 类被替换为更通用的 SnapshotGeneratorFactory,特定于对象的子类与特定于数据库的子类。
我看到你交叉发布到liquibase论坛 http://forum.liquibase.org/topic/replacement-for-missing-liquibase-classes-moving-from-liquibase-2-0-3-to-3-3-0#49382000001219004 如果你有具体的使用问题,这可能是最好的跟进地点,因为它比stackoverflow更面向讨论。