Hi Kevin,

That looks like a "decent" workaround to me! :-)

Cheers
Lukas

2014-03-09 9:15 GMT+01:00 Kevin Wellenzohn <[email protected]>:

> Okay thanks for the info. I haven't found a solution, but an (ugly)
> workaround which
> solves the issue for the moment:
>
> <profile>
>   <id>jooq_codegen</id>
>   <build>
>     <plugins>
>       <!-- jOOQ's plugin definition goes here -->
>     </plugins>
>   </build>
> </profile>
>
> So inside the <plugins></plugins> tag you can simply put your jOOQ
> configuration
> and then run the code generation with the command:
> mvn -P jooq_codegen
>
> This approach abuses maven's concept of build profiles, but at least it
> works for
> the moment :-)
>
> cheers,
> kevin
>
>
>
> http://www.jooq.org/doc/3.3/manual/code-generation/codegen-configuration/#N133F7
>
> On Friday, March 7, 2014 3:27:32 PM UTC+1, Lukas Eder wrote:
>
>> Hello,
>>
>> I *think* this is currently not possible as jOOQ doesn't expose such
>> namespaces. This has been requested before, here:
>> https://github.com/jOOQ/jOOQ/issues/2749
>>
>> However, I'm not a Maven guru, so if know how this can be done, I'd be
>> more than happy to implement it.
>>
>> Cheers
>> Lukas
>>
>>
>> 2014-03-06 19:35 GMT+01:00 <[email protected]>:
>>
>>> Hello,
>>>
>>> I followed the example of integrating the code generation with maven 
>>> [1]<http://www.jooq.org/doc/3.3/manual/code-generation/codegen-configuration/#N133F7>
>>>  and
>>> it works
>>> perfectly. In the example jOOQ's code generation hooks into the generate
>>> goal, and
>>> therefore whenever I run "mvn compile", the code generation is performed.
>>> However, for me it would be nicer to run the code generation manually,
>>> because my
>>> database schema doesn't change that often and therefore it is not really
>>> necessary
>>> to generate the code over and over again. Moreover the code generation
>>> slows down
>>> the build process a bit, so I would like to avoid running it in very
>>> build.
>>>
>>> So my real question is: is it possible to execute jOOQ's code generation
>>> manually
>>> using maven? Something like "maven jooq:generate"?
>>>
>>> I'm not a maven expert and maven has always been somewhat of a mystery
>>> to me.
>>> It might very well be the case that this is just trivial, but after
>>> googling a bit I couldn't
>>> find a straightforward way. So if someone could point me to a good
>>> resource to read,
>>> I would be very grateful.
>>>
>>> cheers,
>>> kevin
>>>
>>> [1] http://www.jooq.org/doc/3.3/manual/code-generation/
>>> codegen-configuration/#N133F7
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "jOOQ User Group" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>>
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "jOOQ User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "jOOQ 
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to