549 lines
16 KiB
XML
549 lines
16 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/maven-v4_0_0.xsd">
|
||
<modelVersion>4.0.0</modelVersion>
|
||
<groupId>jj.tech.finance</groupId>
|
||
<artifactId>finance</artifactId>
|
||
<name>finance</name>
|
||
<packaging>jar</packaging>
|
||
<version>1.0.0</version>
|
||
|
||
<parent>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-parent</artifactId>
|
||
<version>3.2.0</version>
|
||
</parent>
|
||
<properties>
|
||
<java.version>20</java.version>
|
||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||
<!-- <jooq.version>3.17.10</jooq.version> -->
|
||
<!-- <start-class>...</start-class>
|
||
<docker.image.prefix>springcloud</docker.image.prefix> -->
|
||
</properties>
|
||
|
||
|
||
<!--<dependencyManagement>
|
||
<dependencies>
|
||
<dependency>
|
||
<groupId>org.springframework.cloud</groupId>
|
||
<artifactId>spring-cloud-dependencies</artifactId>
|
||
<version>2022.0.3</version>
|
||
<type>pom</type>
|
||
<scope>import</scope>
|
||
</dependency>
|
||
</dependencies>
|
||
</dependencyManagement>-->
|
||
|
||
|
||
<dependencies>
|
||
<!-- <dependency>
|
||
<groupId>org.springframework.cloud</groupId>
|
||
<artifactId>spring-cloud-starter-eureka</artifactId>
|
||
</dependency> -->
|
||
<!-- <dependency>
|
||
<groupId>org.springframework.cloud</groupId>
|
||
<artifactId>spring-cloud-starter-ribbon</artifactId>
|
||
</dependency> -->
|
||
<!-- <dependency>
|
||
<groupId>org.springframework.cloud</groupId>
|
||
<artifactId>spring-cloud-starter-config</artifactId>
|
||
</dependency> -->
|
||
<!-- <dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-data-elasticsearch</artifactId>
|
||
</dependency> -->
|
||
<!-- <dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-amqp</artifactId>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.springframework.cloud</groupId>
|
||
<artifactId>spring-cloud-starter-stream-rabbit</artifactId>
|
||
</dependency> -->
|
||
<!-- <dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-devtools</artifactId>
|
||
<optional>true</optional>
|
||
</dependency> -->
|
||
|
||
<!-- 2020 bootstrap.yaml独立 -->
|
||
<!--<dependency>
|
||
<groupId>org.springframework.cloud</groupId>
|
||
<artifactId>spring-cloud-starter-bootstrap</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework.cloud</groupId>
|
||
<artifactId>spring-cloud-starter-consul-all</artifactId>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-actuator</artifactId>
|
||
</dependency>-->
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-web</artifactId>
|
||
<exclusions>
|
||
<exclusion>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-tomcat</artifactId>
|
||
</exclusion>
|
||
</exclusions>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-undertow</artifactId>
|
||
</dependency>
|
||
|
||
<!--<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-jdbc</artifactId>
|
||
</dependency>-->
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-websocket</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-jooq</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.mybatis.spring.boot</groupId>
|
||
<artifactId>mybatis-spring-boot-starter</artifactId>
|
||
<version>3.0.3</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.mybatis.dynamic-sql</groupId>
|
||
<artifactId>mybatis-dynamic-sql</artifactId>
|
||
<version>1.5.0</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.mybatis.generator</groupId>
|
||
<artifactId>mybatis-generator-core</artifactId>
|
||
<version>1.4.2</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-json</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-validation</artifactId>
|
||
</dependency>
|
||
|
||
<!-- 使用slf4j+logbakc日志 (淘汰log4j和commons-logging) logback-classic包改善了log4j,且实现了SLF4J API,maven自动引入slf4j-api、logback-core-->
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-logging</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>com.github.loki4j</groupId>
|
||
<artifactId>loki-logback-appender</artifactId>
|
||
<version>1.4.1</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-test</artifactId>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springdoc</groupId>
|
||
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
|
||
<version>2.3.0</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.springdoc</groupId>
|
||
<artifactId>springdoc-openapi-starter-common</artifactId>
|
||
<version>2.3.0</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>com.h2database</groupId>
|
||
<artifactId>h2</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.mariadb.jdbc</groupId>
|
||
<artifactId>mariadb-java-client</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>com.mysql</groupId>
|
||
<artifactId>mysql-connector-j</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>com.zaxxer</groupId>
|
||
<artifactId>HikariCP</artifactId>
|
||
<scope>compile</scope>
|
||
</dependency>
|
||
|
||
|
||
<dependency>
|
||
<groupId>com.github.penggle</groupId>
|
||
<artifactId>kaptcha</artifactId>
|
||
<version>2.3.2</version>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.apache.commons</groupId>
|
||
<artifactId>commons-lang3</artifactId>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>commons-codec</groupId>
|
||
<artifactId>commons-codec</artifactId>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.apache.commons</groupId>
|
||
<artifactId>commons-collections4</artifactId>
|
||
<version>4.4</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>commons-io</groupId>
|
||
<artifactId>commons-io</artifactId>
|
||
<version>2.15.1</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>commons-beanutils</groupId>
|
||
<artifactId>commons-beanutils</artifactId>
|
||
<version>1.9.4</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.apache.httpcomponents</groupId>
|
||
<artifactId>fluent-hc</artifactId>
|
||
<version>4.5.14</version>
|
||
</dependency>
|
||
|
||
<!--jwt token-->
|
||
<dependency>
|
||
<groupId>io.jsonwebtoken</groupId>
|
||
<artifactId>jjwt-api</artifactId>
|
||
<version>0.11.5</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>io.jsonwebtoken</groupId>
|
||
<artifactId>jjwt-impl</artifactId>
|
||
<version>0.11.5</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>io.jsonwebtoken</groupId>
|
||
<artifactId>jjwt-jackson</artifactId>
|
||
<version>0.11.5</version>
|
||
</dependency>
|
||
|
||
|
||
|
||
|
||
</dependencies>
|
||
|
||
|
||
<build>
|
||
|
||
<plugins>
|
||
<!-- spring 引导 maven 插件提供了许多方便的功能:
|
||
1、它收集了类路径上的所有 jar, 并生成一个单一的可运行的 "超级jar", 这使得执行和传输服务更加方便。
|
||
2、它搜索公共静态 void main () 方法以将其标记为可运行类。
|
||
3、它提供了一个内置的依赖项冲突解决程序, 它将版本号设置为与 spring 启动依赖项匹配。
|
||
4、您可以重写任何您希望的版本, 但它将默认为启动所选的一组版本。 -->
|
||
<plugin>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||
</plugin>
|
||
|
||
<!-- 读取项目yaml文件,编译打包的时候赋值给pom文件,很久没有维护,希望找到代替 -->
|
||
<plugin>
|
||
<groupId>it.ozimov</groupId>
|
||
<artifactId>yaml-properties-maven-plugin</artifactId>
|
||
<version>1.1.3</version>
|
||
<executions>
|
||
<execution>
|
||
<phase>initialize</phase>
|
||
<goals>
|
||
<goal>read-project-properties</goal>
|
||
</goals>
|
||
<configuration>
|
||
<files>
|
||
<file>src/main/resources/application.yml</file>
|
||
</files>
|
||
</configuration>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
|
||
|
||
|
||
<!-- <plugin>
|
||
<groupId>org.flywaydb</groupId>
|
||
<artifactId>flyway-maven-plugin</artifactId>
|
||
<version>9.20.1</version>
|
||
<configuration>
|
||
<driver>org.h2.Driver</driver>
|
||
<url>jdbc:h2:./test;MODE=MySQL;AUTO_SERVER=TRUE</url>
|
||
<user>sa</user>
|
||
<password></password>
|
||
<locations>
|
||
<location>filesystem:src/main/resources/sql</location>
|
||
<location>classpath:src/main/resources/sql</location>
|
||
</locations>
|
||
<baselineOnMigrate>true</baselineOnMigrate>
|
||
<sqlMigrationSuffixes>
|
||
<sqlMigrationSuffix>.sql</sqlMigrationSuffix>
|
||
</sqlMigrationSuffixes>
|
||
|
||
</configuration>
|
||
<executions>
|
||
<execution>
|
||
<id>create-database-h2</id>
|
||
<phase>generate-sources</phase>
|
||
<goals>
|
||
<goal>migrate</goal>
|
||
</goals>
|
||
</execution>
|
||
</executions>
|
||
|
||
<dependencies>
|
||
<dependency>
|
||
<groupId>com.h2database</groupId>
|
||
<artifactId>h2</artifactId>
|
||
<version>${h2.version}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.mariadb.jdbc</groupId>
|
||
<artifactId>mariadb-java-client</artifactId>
|
||
<version>${mariadb.version}</version>
|
||
</dependency>
|
||
</dependencies>
|
||
</plugin> -->
|
||
|
||
<!--<plugin>
|
||
<groupId>org.codehaus.mojo</groupId>
|
||
<artifactId>sql-maven-plugin</artifactId>
|
||
<version>1.5</version>
|
||
<configuration>
|
||
<skip>${maven.test.skip}</skip>
|
||
</configuration>
|
||
|
||
<executions>
|
||
<execution>
|
||
<id>create-database-h2</id>
|
||
<phase>generate-sources</phase>
|
||
<goals>
|
||
<goal>execute</goal>
|
||
</goals>
|
||
|
||
<configuration>
|
||
<driver>org.h2.Driver</driver>
|
||
<url>jdbc:h2:./finance;MODE=MariaDB;AUTO_SERVER=TRUE;DATABASE_TO_LOWER=TRUE</url>
|
||
<username>sa</username>
|
||
<password></password>
|
||
<driver>org.mariadb.jdbc.Driver</driver>
|
||
<url>jdbc:mariadb://119.45.61.64:3306/finance</url>
|
||
<username>root</username>
|
||
<password>open123</password>
|
||
|
||
<autocommit>true</autocommit>
|
||
<srcFiles>
|
||
<srcFile>src/main/resources/sql/schema-h2.sql</srcFile>
|
||
<srcFile>src/main/resources/sql/data-h2.sql</srcFile>
|
||
</srcFiles>
|
||
</configuration>
|
||
</execution>
|
||
</executions>
|
||
<dependencies>
|
||
<dependency>
|
||
<groupId>com.h2database</groupId>
|
||
<artifactId>h2</artifactId>
|
||
<version>${h2.version}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.mariadb.jdbc</groupId>
|
||
<artifactId>mariadb-java-client</artifactId>
|
||
<version>${mariadb.version}</version>
|
||
</dependency>
|
||
</dependencies>
|
||
|
||
</plugin>-->
|
||
|
||
|
||
<plugin>
|
||
<groupId>org.jooq</groupId>
|
||
<artifactId>jooq-codegen-maven</artifactId>
|
||
<configuration>
|
||
<!--<generator>
|
||
<database>
|
||
<properties>
|
||
<property>
|
||
<key>scripts</key>
|
||
<value>src/main/resources/sql/schema-h2.sql</value>
|
||
</property>
|
||
</properties>
|
||
</database>
|
||
</generator>-->
|
||
<configurationFile>${basedir}/src/main/resources/generate/jooq/JooqConfig.xml</configurationFile>
|
||
</configuration>
|
||
<executions>
|
||
<execution>
|
||
<id>generate-jooq</id>
|
||
<phase>generate-sources</phase>
|
||
<goals>
|
||
<goal>generate</goal>
|
||
</goals>
|
||
</execution>
|
||
</executions>
|
||
<dependencies>
|
||
<dependency>
|
||
<groupId>com.h2database</groupId>
|
||
<artifactId>h2</artifactId>
|
||
<version>${h2.version}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.mariadb.jdbc</groupId>
|
||
<artifactId>mariadb-java-client</artifactId>
|
||
<version>${mariadb.version}</version>
|
||
</dependency>
|
||
</dependencies>
|
||
</plugin>
|
||
|
||
|
||
<plugin>
|
||
<groupId>org.mybatis.generator</groupId>
|
||
<artifactId>mybatis-generator-maven-plugin</artifactId>
|
||
<version>1.4.2</version>
|
||
<configuration>
|
||
|
||
<overwrite>true</overwrite>
|
||
<configurationFile>${basedir}/src/main/resources/generate/mybatis/generatorConfig.xml</configurationFile>
|
||
<!--<sqlScript>${basedir}/src/main/resources/sql/schema-h2.sql</sqlScript>
|
||
<jdbcDriver>org.h2.Driver</jdbcDriver>
|
||
<jdbcURL>jdbc:h2:./finance;MODE=MySQL;AUTO_SERVER=TRUE;DATABASE_TO_LOWER=TRUE;CASE_INSENSITIVE_IDENTIFIERS=TRUE</jdbcURL>
|
||
<jdbcUserId>sa</jdbcUserId>
|
||
<jdbcPassword></jdbcPassword>-->
|
||
<!--<includeAllDependencies>true</includeAllDependencies>-->
|
||
</configuration>
|
||
<executions>
|
||
<execution>
|
||
<id>generate-myBatis</id>
|
||
<phase>generate-sources</phase>
|
||
<goals>
|
||
<goal>generate</goal>
|
||
</goals>
|
||
</execution>
|
||
</executions>
|
||
<dependencies>
|
||
<dependency>
|
||
<groupId>com.h2database</groupId>
|
||
<artifactId>h2</artifactId>
|
||
<version>${h2.version}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.mariadb.jdbc</groupId>
|
||
<artifactId>mariadb-java-client</artifactId>
|
||
<version>${mariadb.version}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>com.mysql</groupId>
|
||
<artifactId>mysql-connector-j</artifactId>
|
||
<version>${mysql.version}</version>
|
||
</dependency>
|
||
|
||
|
||
</dependencies>
|
||
</plugin>
|
||
|
||
|
||
|
||
</plugins>
|
||
</build>
|
||
|
||
|
||
<!--<repositories>
|
||
<repository>
|
||
<id>aliyun-public</id>
|
||
<name>aliyun-public</name>
|
||
<url>https://maven.aliyun.com/repository/public</url>
|
||
<releases>
|
||
<enabled>true</enabled>
|
||
</releases>
|
||
<snapshots>
|
||
<enabled>true</enabled>
|
||
</snapshots>
|
||
</repository>
|
||
<repository>
|
||
<id>aliyun-central</id>
|
||
<name>aliyun-central</name>
|
||
<url>https://maven.aliyun.com/repository/central</url>
|
||
<releases>
|
||
<enabled>true</enabled>
|
||
</releases>
|
||
<snapshots>
|
||
<enabled>true</enabled>
|
||
</snapshots>
|
||
</repository>
|
||
<repository>
|
||
<id>aliyun-spring</id>
|
||
<url>https://maven.aliyun.com/repository/spring</url>
|
||
<releases>
|
||
<enabled>true</enabled>
|
||
</releases>
|
||
<snapshots>
|
||
<enabled>true</enabled>
|
||
</snapshots>
|
||
</repository>
|
||
<repository>
|
||
<id>spring-snapshots</id>
|
||
<url>https://repo.spring.io/snapshot</url>
|
||
<snapshots>
|
||
<enabled>true</enabled>
|
||
</snapshots>
|
||
</repository>
|
||
<repository>
|
||
<id>spring-milestones</id>
|
||
<url>https://repo.spring.io/milestone</url>
|
||
</repository>
|
||
</repositories>
|
||
|
||
<pluginRepositories>
|
||
<pluginRepository>
|
||
<id>aliyun-plugin</id>
|
||
<name>aliyun-plugin</name>
|
||
<url>https://maven.aliyun.com/repository/public</url>
|
||
<releases>
|
||
<enabled>true</enabled>
|
||
</releases>
|
||
<snapshots>
|
||
<enabled>true</enabled>
|
||
</snapshots>
|
||
</pluginRepository>
|
||
<pluginRepository>
|
||
<id>aliyun-plugin-central</id>
|
||
<name>aliyun-plugin-central</name>
|
||
<url>https://maven.aliyun.com/repository/central</url>
|
||
<releases>
|
||
<enabled>true</enabled>
|
||
</releases>
|
||
<snapshots>
|
||
<enabled>true</enabled>
|
||
</snapshots>
|
||
</pluginRepository>
|
||
|
||
<pluginRepository>
|
||
<id>spring-snapshots</id>
|
||
<url>https://repo.spring.io/snapshot</url>
|
||
</pluginRepository>
|
||
<pluginRepository>
|
||
<id>spring-milestones</id>
|
||
<url>https://repo.spring.io/milestone</url>
|
||
</pluginRepository>
|
||
</pluginRepositories>-->
|
||
|
||
|
||
</project>
|