Hi Federico,
The jOOQ Maven plugin supports a <skip> flag:
https://www.jooq.org/doc/latest/manual/code-generation/codegen-maven
Which you can either set in your configuration and put your own system
property there:
<skip>${myproperty}</skip>
Or, you use the configured parameter:
https://github.com/jOOQ/jOOQ/blob/version-3.11.10/jOOQ-codegen-maven/src/main/java/org/jooq/codegen/maven/Plugin.java#L98
Thanks,
Lukas
On Tue, Mar 12, 2019 at 3:45 AM Federico Piazza <[email protected]>
wrote:
> [image: MailTag]
> Hi guys,
>
> We use spring boot and jooq together and we are setting a Gitlab CI/CD
> process.
>
> We found that jooq can be a bit challenging when setting up the CI/CD
> since we want to spin up a dockerized db specifically to run jooq.
> Basically, our steps to build our application is:
> - Spin up a dockerized db with: docker container run ... postgres
> - Execute flyway: mvn flyway:migrate ...
> - Run mvn package (with jooq): mvn package -DskipTests
>
> So far so good, however the next CI/CD job is the Test phase, where we do:
> - mvn package (and not mvn test)
>
> Since mvn package execute jooq, I was wondering how I can run something
> like:
> - mvn package -DskipJooq=true
> to avoid running jooq since I am using gitlab ci cache from job to job.
>
> I couldn't find in the documentation the system properties supported by
> jooq, is there any way to achieve that?
>
> Regards,
> Federico
>
> --
> 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.