jOOQ Codegen Postgres Maven Plugin

Maven plugin to generate jOOQ classes using dockerized postgres database during code generation phase

License

License

Categories

Categories

Maven Build Tools jOOQ Data Databases
GroupId

GroupId

at.craftworks.tools.maven
ArtifactId

ArtifactId

jooq-codegen-postgres-maven-plugin
Last Version

Last Version

0.0.3
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

jOOQ Codegen Postgres Maven Plugin
Maven plugin to generate jOOQ classes using dockerized postgres database during code generation phase
Project URL

Project URL

https://github.com/craftworksgmbh/jooq-codegen-postgres-maven-plugin
Source Code Management

Source Code Management

https://github.com/craftworksgmbh/jooq-codegen-postgres-maven-plugin

Download jooq-codegen-postgres-maven-plugin

How to add to project

<plugin>
    <groupId>at.craftworks.tools.maven</groupId>
    <artifactId>jooq-codegen-postgres-maven-plugin</artifactId>
    <version>0.0.3</version>
</plugin>

Dependencies

compile (14)

Group / Artifact Type Version
org.apache.maven : maven-artifact jar 2.2.1
org.apache.maven : maven-plugin-api jar 2.2.1
org.apache.maven : maven-project jar 2.2.1
org.apache.maven : maven-model jar 2.2.1
org.apache.maven : maven-core jar 2.0.9
org.jooq : jooq jar 3.12.3
org.jooq : jooq-meta jar 3.12.3
org.jooq : jooq-codegen jar 3.12.3
junit : junit jar 4.11
org.testcontainers : testcontainers jar 1.10.6
org.testcontainers : postgresql jar 1.10.6
org.flywaydb : flyway-core jar 6.0.3
org.postgresql : postgresql jar 42.2.5
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.5.2

Project Modules

There are no modules declared in this project.

jOOQ Codegen Postgres Maven Plugin

Maven plugin to generate jOOQ classes using dockerized postgres database during code generation phase

How to Use

Example setup

<plugin>
    <groupId>at.craftworks.tools.maven</groupId>
    <artifactId>jooq-codegen-postgres-maven-plugin</artifactId>
    <version>0.0.3</version>
    <executions>
        <execution>
            <id>jooq-codegen</id>
            <phase>generate-sources</phase>
            <goals>
                <goal>jooq-generate</goal>
            </goals>
        </execution>
    </executions>
    <configuration>
        <dockerImageName>postgres:11</dockerImageName>
        <flyway>
            <migrationDirectory>filesystem:${basedir}/src/main/resources/db/migration</migrationDirectory>
        </flyway>
        <generator>
            <database>
                <name>org.jooq.meta.postgres.PostgresDatabase</name>
                <includes>.*</includes>
                <excludes>flyway_schema_history.*</excludes>
                <inputSchema>public</inputSchema>
            </database>
            <target>
                <packageName>io.github.myuser.myproject.jooq</packageName>
                <directory>target/generated-sources/jooq</directory>
            </target>
        </generator>
    </configuration>
    <dependencies>
        <dependency>
            <groupId>org.testcontainers</groupId>
            <artifactId>testcontainers</artifactId>
            <version>1.10.6</version>
        </dependency>

        <dependency>
            <groupId>org.testcontainers</groupId>
            <artifactId>postgresql</artifactId>
            <version>1.10.6</version>
        </dependency>

        <dependency>
            <groupId>org.flywaydb</groupId>
            <artifactId>flyway-core</artifactId>
            <version>6.0.3</version>
        </dependency>

        <dependency>
            <groupId>org.jooq</groupId>
            <artifactId>jooq</artifactId>
            <version>3.12.3</version>
        </dependency>
        <dependency>
            <groupId>org.jooq</groupId>
            <artifactId>jooq-meta</artifactId>
            <version>3.12.3</version>
        </dependency>
        <dependency>
            <groupId>org.jooq</groupId>
            <artifactId>jooq-codegen</artifactId>
            <version>3.12.3</version>
        </dependency>
    </dependencies>
</plugin>
at.craftworks.tools.maven

craftworks

Versions

Version
0.0.3