For reference here's the full relevant section from my POM. Note that I'm
running the jOOQ generation in a separate profile so that it won't run with
a normal Maven build. That is, it is invoked using e.g.: mvn
generate-resources -P tools
<dependency>
<groupId>org.jooq</groupId>
<artifactId>jooq</artifactId>
<version>3.3.1</version>
</dependency>
</dependencies>
<profiles>
<profile>
<id>tools</id>
<build>
<plugins>
<plugin>
<groupId>org.jooq</groupId>
<artifactId>jooq-codegen-maven</artifactId>
<version>3.3.1</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>9.3-1100-jdbc41</version>
</dependency>
</dependencies>
<configuration>
<jdbc>
<driver>org.postgresql.Driver</driver>
<url>jdbc:postgresql://127.0.0.1:5432/exampledb</url>
<user>user</user>
<password>password</password>
</jdbc>
<generator>
<name>org.jooq.util.DefaultGenerator</name>
<database>
<name>org.jooq.util.postgres.PostgresDatabase</name>
<includes>.*</includes>
<excludes></excludes>
<inputSchema>public</inputSchema>
</database>
<strategy>
<matchers>
<fields>
<expression>^(.+):(.+)$</expression>
<fieldIdentifier>
<transform>UPPER</transform>
<expression>$1_$2</expression>
</fieldIdentifier>
</fields>
</matchers>
</strategy>
<target>
<packageName>com.example.jooq.schema</packageName>
<directory>${project.build.directory}/generated-sources</directory>
</target>
</generator>
</configuration>
</plugin>
</plugins>
--
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.