Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>com.squareup.JooqTest</groupId>
- <artifactId>jooqtest</artifactId>
- <packaging>jar</packaging>
- <version>1.0-SNAPSHOT</version>
- <name>jooqtest</name>
- <url>http://maven.apache.org</url>
- <build>
- <plugins>
- <plugin>
- <version>3.1</version>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <!-- or whatever version you use -->
- <source>1.8</source>
- <target>1.8</target>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>sql-maven-plugin</artifactId>
- <version>1.5</version>
- <dependencies>
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- <version>5.1.35</version>
- </dependency>
- </dependencies>
- <executions>
- <execution>
- <phase>initialize</phase>
- <goals>
- <goal>execute</goal>
- </goals>
- <configuration>
- <driver>com.mysql.jdbc.Driver</driver>
- <url>jdbc:mysql://localhost/</url>
- <username>root</username>
- <autocommit>true</autocommit>
- <sqlCommand>
- DROP DATABASE IF EXISTS jooqtest;
- CREATE DATABASE jooqtest;
- USE jooqtest;
- CREATE TABLE t1 (id INT primary key, date timestamp);
- CREATE TABLE t2 (id INT primary key, date INT);
- </sqlCommand>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.jooq</groupId>
- <artifactId>jooq-codegen-maven</artifactId>
- <version>3.6.2</version>
- <executions>
- <execution>
- <phase>generate-sources</phase>
- <goals>
- <goal>generate</goal>
- </goals>
- <configuration>
- <jdbc>
- <driver>com.mysql.jdbc.Driver</driver>
- <url>jdbc:mysql://localhost/jooqtest</url>
- <user>root</user>
- </jdbc>
- <generator>
- <name>org.jooq.util.JavaGenerator</name>
- <database>
- <name>org.jooq.util.mysql.MySQLDatabase</name>
- <includes>.*</includes>
- <excludes>mysql.*</excludes>
- <inputSchema>jooqtest</inputSchema>
- <customTypes>
- <customType>
- <name>com.squareup.JooqTest.TimestampConverter</name>
- <type>java.lang.Integer</type>
- <converter>com.squareup.JooqTest.TimestampConverter</converter>
- </customType>
- </customTypes>
- <forcedTypes>
- <forcedType>
- <name>com.squareup.JooqTest.TimestampConverter</name>
- <types>(?:timestamp.*)</types>
- </forcedType>
- </forcedTypes>
- </database>
- <target>
- <packageName>jooqtest</packageName>
- </target>
- </generator>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- <dependencies>
- <dependency>
- <groupId>log4j</groupId>
- <artifactId>log4j</artifactId>
- <version>1.2.17</version>
- </dependency>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.1</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>com.google.guava</groupId>
- <artifactId>guava</artifactId>
- <version>18.0</version>
- </dependency>
- <dependency>
- <groupId>org.jooq</groupId>
- <artifactId>jooq</artifactId>
- <version>3.6.2</version>
- </dependency>
- <dependency>
- <groupId>org.jooq</groupId>
- <artifactId>jooq-meta</artifactId>
- <version>3.6.2</version>
- </dependency>
- <dependency>
- <groupId>org.jooq</groupId>
- <artifactId>jooq-codegen</artifactId>
- <version>3.6.2</version>
- </dependency>
- <dependency>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>sql-maven-plugin</artifactId>
- <version>1.5</version>
- </dependency>
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- <version>5.1.35</version>
- </dependency>
- </dependencies>
- </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement