149 lines
5.7 KiB
XML
149 lines
5.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<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">
|
|
<parent>
|
|
<artifactId>alive-api-server</artifactId>
|
|
<groupId>com.alive</groupId>
|
|
<version>1.0-SNAPSHOT</version>
|
|
</parent>
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<artifactId>alive-db</artifactId>
|
|
<packaging>jar</packaging>
|
|
|
|
<properties>
|
|
<java.version>1.8</java.version>
|
|
<jooq.version>3.12.3</jooq.version>
|
|
<jooq.generate>com.alive.db.jooq</jooq.generate>
|
|
<db.url>jdbc:mysql://127.0.0.1:3306</db.url>
|
|
<db.username>root</db.username>
|
|
<db.password>root</db.password>
|
|
<db.schema>alive_dev</db.schema>
|
|
<db.driver>com.mysql.cj.jdbc.Driver</db.driver>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.jooq</groupId>
|
|
<artifactId>jooq</artifactId>
|
|
<version>${jooq.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.jooq</groupId>
|
|
<artifactId>jooq-meta</artifactId>
|
|
<version>${jooq.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.jooq</groupId>
|
|
<artifactId>jooq-codegen</artifactId>
|
|
<version>${jooq.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.projectlombok</groupId>
|
|
<artifactId>lombok</artifactId>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.baomidou</groupId>
|
|
<artifactId>mybatis-plus</artifactId>
|
|
<version>3.3.2</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.hibernate</groupId>
|
|
<artifactId>hibernate-validator</artifactId>
|
|
<version>6.0.18.Final</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>io.swagger</groupId>
|
|
<artifactId>swagger-annotations</artifactId>
|
|
<version>1.6.1</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
<artifactId>jackson-annotations</artifactId>
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>3.8.1</version>
|
|
<configuration>
|
|
<source>8</source>
|
|
<target>8</target>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.jooq</groupId>
|
|
<artifactId>jooq-codegen-maven</artifactId>
|
|
<version>${jooq.version}</version>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>mysql</groupId>
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
<version>8.0.18</version>
|
|
</dependency>
|
|
</dependencies>
|
|
<configuration> <!-- JDBC connection parameters -->
|
|
<jdbc>
|
|
<driver>${db.driver}</driver>
|
|
<url>${db.url}/${db.schema}?useSSL=false&serverTimezone=GMT</url>
|
|
<user>${db.username}</user>
|
|
<password>${db.password}</password>
|
|
</jdbc> <!-- Generator parameters -->
|
|
<generator>
|
|
<database>
|
|
<name>org.jooq.meta.mysql.MySQLDatabase</name>
|
|
<includes>
|
|
sys_account |
|
|
sys_action_log |
|
|
sys_config |
|
|
sys_menu |
|
|
sys_role |
|
|
t_member_sign |
|
|
t_uni_notice |
|
|
t_uni_banner |
|
|
node_buy_log |
|
|
t_member |
|
|
t_member_wallet |
|
|
t_member_wallet_log |
|
|
chain_log |
|
|
coin_config |
|
|
pay_coin_log |
|
|
user_node |
|
|
user_node_log |
|
|
node_income_config
|
|
</includes>
|
|
<excludes>
|
|
a_template_table
|
|
</excludes>
|
|
<outputSchemaToDefault>true</outputSchemaToDefault>
|
|
<inputSchema>${db.schema}</inputSchema>
|
|
<unsignedTypes>false</unsignedTypes>
|
|
</database>
|
|
<target>
|
|
<packageName>${jooq.generate}</packageName>
|
|
<directory>${project.basedir}/src/main/java</directory>
|
|
</target>
|
|
<generate>
|
|
<daos>false</daos>
|
|
<pojos>true</pojos>
|
|
</generate>
|
|
<strategy>
|
|
<name>com.alive.db.CustomJooqGeneratorStrategy</name>
|
|
</strategy>
|
|
</generator>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
</project> |