Maven 2、Liquibase 和 dbDoc
我想生成 liquibase 的 dbdoc 作为我的 Maven 站点构建的一部分,但我不知道如何做到这一点。我的想法是将 maven-antrun-plugin 添加到 pom 的报告部分,但我不能在报告部分的插件下有节点。有什么想法吗?
I'd like to generate liquibase's dbdoc as part of my maven site build, but I cannot figure out how to do this. My thoughts were to add maven-antrun-plugin to the reporting section of the pom, but I cannot have an node under plugin in the reporting section. Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Maven LiquiBase 插件 不支持此功能,因此要么创建自己的报告插件,要么使用 < a href="http://www.liquibase.org/manual/dbdoc_ant_task" rel="nofollow noreferrer">dbDoc Ant Task 和 Maven AntRun 插件,用于在
target/site/< 下生成文档/代码>。
在后一种情况下,将插件绑定到 网站生命周期(这需要一些测试,但我认为
pre-site
、site
或post-site
会没问题)并在 站点描述符。This is not supported by the Maven LiquiBase Plugin so either create your own report plugin or use the dbDoc Ant Task and the Maven AntRun Plugin to generate the documentation under
target/site/
.In the later case, bind the plugin on one of the phases of the Site Lifecycle (this will require some testing but I think that
pre-site
,site
orpost-site
would be ok) and add an entry in the left menu in the site descriptor.您可以创建自己的报告插件,更多信息请参见:
http: //docs.codehaus.org/display/MAVENUSER/Write+your+own+report+plugin
You can create your own reports plugin, more information here:
http://docs.codehaus.org/display/MAVENUSER/Write+your+own+report+plugin