358 lines
15 KiB
XML
358 lines
15 KiB
XML
<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/xsd/maven-4.0.0.xsd">
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<parent>
|
|
<groupId>org.jooq</groupId>
|
|
<artifactId>jooq-parent</artifactId>
|
|
<version>3.2.0-SNAPSHOT</version>
|
|
</parent>
|
|
|
|
<groupId>org.jooq</groupId>
|
|
<artifactId>jooq-codegen-maven-example</artifactId>
|
|
<name>jOOQ Codegen Maven (Example)</name>
|
|
|
|
<licenses>
|
|
<license>
|
|
<name>Apache License, Version 2.0</name>
|
|
<url>http://www.jooq.org/inc/LICENSE.txt</url>
|
|
<distribution>repo</distribution>
|
|
</license>
|
|
<!-- [com] -->
|
|
<license>
|
|
<name>jOOQ License and Maintenance Agreement</name>
|
|
<url>http://www.jooq.org/eula</url>
|
|
<distribution>repo</distribution>
|
|
</license>
|
|
<!-- [/com] -->
|
|
</licenses>
|
|
|
|
<properties>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<org.springframework.version>3.2.3.RELEASE</org.springframework.version>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>log4j</groupId>
|
|
<artifactId>log4j</artifactId>
|
|
<version>1.2.16</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.jooq</groupId>
|
|
<artifactId>jooq</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>junit</groupId>
|
|
<artifactId>junit</artifactId>
|
|
<version>4.9</version>
|
|
<type>jar</type>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.modelmapper</groupId>
|
|
<artifactId>modelmapper</artifactId>
|
|
<version>0.5.5</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.h2database</groupId>
|
|
<artifactId>h2</artifactId>
|
|
<version>1.3.168</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.xerial</groupId>
|
|
<artifactId>sqlite-jdbc</artifactId>
|
|
<version>3.7.15-M1</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>javax.persistence</groupId>
|
|
<artifactId>persistence-api</artifactId>
|
|
<version>1.0.2</version>
|
|
<type>jar</type>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>commons-dbcp</groupId>
|
|
<artifactId>commons-dbcp</artifactId>
|
|
<version>1.4</version>
|
|
</dependency>
|
|
|
|
<!-- Core utilities used by other modules. Define this if you use
|
|
Spring Utility APIs (org.springframework.core.*/org.springframework.util.*) -->
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-core</artifactId>
|
|
<version>${org.springframework.version}</version>
|
|
</dependency>
|
|
|
|
<!-- Bean Factory and JavaBeans utilities (depends on spring-core)
|
|
Define this if you use Spring Bean APIs (org.springframework.beans.*) -->
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-beans</artifactId>
|
|
<version>${org.springframework.version}</version>
|
|
</dependency>
|
|
|
|
<!-- Application Context (depends on spring-core, spring-expression,
|
|
spring-aop, spring-beans) This is the central artifact for Spring's Dependency
|
|
Injection Container and is generally always defined -->
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-context</artifactId>
|
|
<version>${org.springframework.version}</version>
|
|
</dependency>
|
|
|
|
|
|
<!-- Aspect Oriented Programming (AOP) Framework (depends on spring-core,
|
|
spring-beans) Define this if you use Spring AOP APIs (org.springframework.aop.*) -->
|
|
<!--
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-aop</artifactId>
|
|
<version>${org.springframework.version}</version>
|
|
</dependency> -->
|
|
|
|
<!-- Various Application Context utilities, including EhCache, JavaMail,
|
|
Quartz, and Freemarker integration Define this if you need any of these integrations -->
|
|
<!--
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-context-support</artifactId>
|
|
<version>${org.springframework.version}</version>
|
|
</dependency> -->
|
|
|
|
<!-- Transaction Management Abstraction (depends on spring-core,
|
|
spring-beans, spring-aop, spring-context) Define this if you use Spring Transactions
|
|
or DAO Exception Hierarchy (org.springframework.transaction.*/org.springframework.dao.*) -->
|
|
<!--
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-tx</artifactId>
|
|
<version>${org.springframework.version}</version>
|
|
</dependency> -->
|
|
|
|
<!-- JDBC Data Access Library (depends on spring-core, spring-beans,
|
|
spring-context, spring-tx) Define this if you use Spring's JdbcTemplate API
|
|
(org.springframework.jdbc.*) -->
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-jdbc</artifactId>
|
|
<version>${org.springframework.version}</version>
|
|
</dependency>
|
|
|
|
<!-- Object-to-Relation-Mapping (ORM) integration with Hibernate,
|
|
JPA, and iBatis. (depends on spring-core, spring-beans, spring-context, spring-tx)
|
|
Define this if you need ORM (org.springframework.orm.*) -->
|
|
<!--
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-orm</artifactId>
|
|
<version>${org.springframework.version}</version>
|
|
</dependency> -->
|
|
|
|
<!-- Support for testing Spring applications with tools such as JUnit
|
|
and TestNG This artifact is generally always defined with a 'test' scope
|
|
for the integration testing framework and unit testing stubs -->
|
|
<!--
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-test</artifactId>
|
|
<version>${org.springframework.version}</version>
|
|
<scope>test</scope>
|
|
</dependency> -->
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
|
|
<!-- The H2 test schema is loaded here -->
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>sql-maven-plugin</artifactId>
|
|
<version>1.5</version>
|
|
|
|
<!-- common configuration shared by all executions -->
|
|
<configuration>
|
|
<!--all executions are ignored if -Dmaven.test.skip=true -->
|
|
<skip>${maven.test.skip}</skip>
|
|
<forkMode>always</forkMode>
|
|
</configuration>
|
|
|
|
<executions>
|
|
<execution>
|
|
<id>create-database-h2</id>
|
|
<phase>generate-test-sources</phase>
|
|
<goals>
|
|
<goal>execute</goal>
|
|
</goals>
|
|
<configuration>
|
|
<driver>org.h2.Driver</driver>
|
|
<url>jdbc:h2:~/maven-test</url>
|
|
<username>sa</username>
|
|
<password></password>
|
|
|
|
<autocommit>true</autocommit>
|
|
<srcFiles>
|
|
<srcFile>src/test/resources/db-h2.sql</srcFile>
|
|
</srcFiles>
|
|
</configuration>
|
|
</execution>
|
|
|
|
<!-- TODO: Find out how database creation and code generation can be run at the same time
|
|
without running into native dll classloading problems
|
|
<execution>
|
|
<id>create-database-sqlite</id>
|
|
<phase>generate-test-sources</phase>
|
|
<goals>
|
|
<goal>execute</goal>
|
|
</goals>
|
|
<configuration>
|
|
<driver>org.sqlite.JDBC</driver>
|
|
<url>jdbc:sqlite:sqlite/2608.db</url>
|
|
<username>sa</username>
|
|
<password></password>
|
|
<escapeProcessing>false</escapeProcessing>
|
|
|
|
<autocommit>true</autocommit>
|
|
<srcFiles>
|
|
<srcFile>src/test/resources/db-sqlite.sql</srcFile>
|
|
</srcFiles>
|
|
</configuration>
|
|
</execution>
|
|
-->
|
|
</executions>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>com.h2database</groupId>
|
|
<artifactId>h2</artifactId>
|
|
<version>1.3.168</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.xerial</groupId>
|
|
<artifactId>sqlite-jdbc</artifactId>
|
|
<version>3.7.15-M1</version>
|
|
</dependency>
|
|
</dependencies>
|
|
</plugin>
|
|
|
|
<!-- The jOOQ code generator plugin for Postgres / Sybase ASE / MySQL -->
|
|
<plugin>
|
|
<groupId>org.jooq</groupId>
|
|
<artifactId>jooq-codegen-maven</artifactId>
|
|
<version>3.2.0-SNAPSHOT</version>
|
|
|
|
<executions>
|
|
<execution>
|
|
<id>generate-h2</id>
|
|
<phase>generate-test-sources</phase>
|
|
<goals>
|
|
<goal>generate</goal>
|
|
</goals>
|
|
<configuration>
|
|
<jdbc>
|
|
<driver>org.h2.Driver</driver>
|
|
<url>jdbc:h2:~/maven-test</url>
|
|
<user>sa</user>
|
|
<password></password>
|
|
</jdbc>
|
|
<generator>
|
|
<name>org.jooq.util.DefaultGenerator</name>
|
|
<database>
|
|
<name>org.jooq.util.h2.H2Database</name>
|
|
<includes>.*</includes>
|
|
<excludes></excludes>
|
|
<dateAsTimestamp>true</dateAsTimestamp>
|
|
<inputSchema>PUBLIC</inputSchema>
|
|
</database>
|
|
<generate>
|
|
<deprecated>false</deprecated>
|
|
<instanceFields>true</instanceFields>
|
|
<pojos>true</pojos>
|
|
</generate>
|
|
<target>
|
|
<packageName>org.jooq.maven.example.h2</packageName>
|
|
<directory>target/generated-test-sources/jooq-h2</directory>
|
|
</target>
|
|
</generator>
|
|
</configuration>
|
|
</execution>
|
|
|
|
<execution>
|
|
<id>generate-sqlite</id>
|
|
<phase>generate-test-sources</phase>
|
|
<goals>
|
|
<goal>generate</goal>
|
|
</goals>
|
|
<configuration>
|
|
<jdbc>
|
|
<driver>org.sqlite.JDBC</driver>
|
|
<url>jdbc:sqlite:sqlite/2608.db</url>
|
|
<user>sa</user>
|
|
<password></password>
|
|
</jdbc>
|
|
<generator>
|
|
<name>org.jooq.util.DefaultGenerator</name>
|
|
<database>
|
|
<name>org.jooq.util.sqlite.SQLiteDatabase</name>
|
|
<includes>.*</includes>
|
|
<excludes></excludes>
|
|
<dateAsTimestamp>true</dateAsTimestamp>
|
|
</database>
|
|
<generate>
|
|
<deprecated>false</deprecated>
|
|
<instanceFields>true</instanceFields>
|
|
<pojos>true</pojos>
|
|
</generate>
|
|
<target>
|
|
<packageName>org.jooq.maven.example.sqlite</packageName>
|
|
<directory>target/generated-test-sources/jooq-sqlite</directory>
|
|
</target>
|
|
</generator>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>com.h2database</groupId>
|
|
<artifactId>h2</artifactId>
|
|
<version>1.3.168</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.xerial</groupId>
|
|
<artifactId>sqlite-jdbc</artifactId>
|
|
<version>3.7.15-M1</version>
|
|
</dependency>
|
|
</dependencies>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>release</id>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-gpg-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>sign-artifacts</id>
|
|
<phase>verify</phase>
|
|
<goals>
|
|
<goal>sign</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
</project> |