如何:使用Maven2进行数据库版本控制? [英] How to: database versioning with maven2?

查看:168
本文介绍了如何:使用Maven2进行数据库版本控制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在找到任何用于对数据库更改进行版本控制的maven插件.

I am finding any maven plugin for versioning database changes.

推荐答案

有一些插件对此任务提供了一些支持:

There are a few plugins that offer some support for this task:

  • Maven LiquiBase Plugin
  • Maven Database Migration Plugin
  • DbMaintain Maven Plugin (a plugin for DbMaintain, the famous tool from Unitils)

我对它们没有太多经验,我们目前使用自定义工具来应用更改脚本.但是 Maven数据库迁移插件是替代它的认真选择. LiquiBase非常有名,但也有所不同,更改以通用XML格式描述.关于DbMaintain,它运作良好(在Unitils中),但我从未测试过上述包装器插件.

I don't have much experience with them, we currently use a custom tool to apply our change scripts. But the Maven Database Migration Plugin is a serious candidate to replace it. LiquiBase is pretty famous but also different, changes are described in a generic XML format. About DbMaintain, it works well (in Unitils) but I've never tested the wrapper plugin mentioned above.

这篇关于如何:使用Maven2进行数据库版本控制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆