如何在最终版本中包含Jooq代码生成 [英] How to include Jooq Code generation in final build

查看:89
本文介绍了如何在最终版本中包含Jooq代码生成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Jooq代码生成,但是我没有在源代码管理中包括其所有Java类. 那是当一名开发人员从中获取代码时,他必须运行代码生成以与db模式保持最新,但是如何将其包含在最终的jar中?

I'm using Jooq code generation but I don't include all its java class in source control. That is when one of the developrts pull the code from get he has to run code generation to be up to date with the db schema But how to include it in the final jar?

推荐答案

必须运行代码生成的开发人员与生成必须运行代码生成的jar文件的构建服务器之间没有什么区别.如果您不想将生成的源作为库检入,则构建应用程序的任何人都需要在构建过程中生成代码.

There's no difference between that developer that has to run the code generation, and the build server producing the jar files that has to run code generation. Anyone building your application will need to generate code during the build if you do not want to check in your generated sources as a library.

有关使用jOOQ代码生成器的更多信息可以在此处找到具有版本控制的功能.

这篇关于如何在最终版本中包含Jooq代码生成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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