How to run the jOOQ code generator twice with Maven?

250 views
Skip to first unread message

Lukas Eder

unread,
Nov 18, 2011, 5:06:25 AM11/18/11
to jooq...@googlegroups.com, Sander Plas
Hello community,

Is anyone aware of any means how to run the jOOQ code generator twice
with Maven? It appears that when I configure the same plugin twice,
the second configuration will override the first one and the first one
won't be executed. That's a shame, as some users might want use jOOQ
with several databases / instances / schemata / users, etc.

Maybe, I'm missing something? Otherwise, I'll modify the plugin to
optionally accept a list of code generation configurations... This
example shows how I'm trying to set up the plugin twice:
https://github.com/lukaseder/jOOQ/blob/master/jOOQ-codegen-maven-example/pom.xml

Cheers
Lukas

Sander Plas

unread,
Nov 18, 2011, 8:37:48 AM11/18/11
to jOOQ User Group
Hi Lukas,

This page seems to suggest that you can configure multiple
"executions" for one plugin:

http://maven.apache.org/guides/mini/guide-configuring-plugins.html#Configuring_Build_Plugins

- Sander
> example shows how I'm trying to set up the plugin twice:https://github.com/lukaseder/jOOQ/blob/master/jOOQ-codegen-maven-exam...
>
> Cheers
> Lukas

Lukas Eder

unread,
Nov 18, 2011, 9:30:45 AM11/18/11
to jooq...@googlegroups.com
Very nice! That works wonderfully!

Thanks
Lukas

2011/11/18 Sander Plas <sande...@gmail.com>:

Reply all
Reply to author
Forward
0 new messages