2 Star 2 Fork 2

ninghongkang/HongheFinance

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
pom.xml 13.16 KB
一键复制 编辑 原始数据 按行查看 历史
<?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">
<modelVersion>4.0.0</modelVersion>
<groupId>com.clear</groupId>
<artifactId>honghe-finance</artifactId>
<!-- 工程版本号约定: <主版本>.<次版本>.<增量版本>.<里程牌版本>-->
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.report.outputEncoding>UTF-8</project.report.outputEncoding>
<spring-boot.version>2.4.2</spring-boot.version>
<!-- maven编译插件版本 -->
<maven.compiler.version>3.10.1</maven.compiler.version>
<lombok-version>1.18.32</lombok-version>
<org.mapstruct.version>1.4.2.Final</org.mapstruct.version>
<mysql-connector-java-version>8.0.33</mysql-connector-java-version>
<mybatis-plus.version>3.4.0</mybatis-plus.version>
<mybatis-generator-core-version>1.4.2</mybatis-generator-core-version>
<guava.version>30.1-jre</guava.version>
<jackson.version>2.11.4</jackson.version>
<dom4j.version>2.1.1</dom4j.version>
<xstream.version>1.4.18</xstream.version>
<redisson.version>3.13.6</redisson.version>
<commons-lang3.version>3.10</commons-lang3.version>
<commons-pool2.version>2.9.0</commons-pool2.version>
<hutool.version>5.8.10</hutool.version>
<xxl-job.version>2.4.1</xxl-job.version>
<minio.version>8.2.0</minio.version>
</properties>
<!-- 依赖声明: 声明若干个依赖,只声明不使用 -->
<dependencyManagement>
<dependencies>
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-dependencies -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring-boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.16</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>${mysql-connector-java-version}</version>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>${mybatis-plus.version}</version>
</dependency>
<dependency>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-core</artifactId>
<version>${mybatis-generator-core-version}</version>
</dependency>
<dependency>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct</artifactId>
<version>${org.mapstruct.version}</version>
</dependency>
<dependency>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct-processor</artifactId>
<version>${org.mapstruct.version}</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-xml</artifactId>
<version>${jackson.version}</version>
</dependency>
<!-- DOM4J是 dom4j.org 出品的一个开源XML解析包-->
<dependency>
<groupId>org.dom4j</groupId>
<artifactId>dom4j</artifactId>
<version>${dom4j.version}</version>
</dependency>
<dependency>
<groupId>com.thoughtworks.xstream</groupId>
<artifactId>xstream</artifactId>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>${commons-lang3.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
<version>${spring-boot.version}</version>
</dependency>
<!-- 提供Redis连接池 -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-pool2</artifactId>
<version>${commons-pool2.version}</version>
</dependency>
<!-- 分布式锁 -->
<dependency>
<groupId>org.redisson</groupId>
<artifactId>redisson</artifactId>
<version>${redisson.version}</version>
</dependency>
<dependency>
<groupId>org.apache.rocketmq</groupId>
<artifactId>rocketmq-spring-boot-starter</artifactId>
<version>2.1.1</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>compile</scope>
</dependency>
<!-- Swagger3 -->
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-boot-starter</artifactId>
<version>3.0.0</version>
</dependency>
<!-- 官方地址:https://doc.xiaominfo.com/-->
<dependency>
<groupId>com.github.xiaoymin</groupId>
<artifactId>knife4j-spring-boot-starter</artifactId>
<version>3.0.3</version>
</dependency>
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>${hutool.version}</version>
</dependency>
<dependency>
<groupId>com.xuxueli</groupId>
<artifactId>xxl-job-core</artifactId>
<version>${xxl-job.version}</version>
</dependency>
<dependency>
<groupId>io.minio</groupId>
<artifactId>minio</artifactId>
<version>${minio.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.7.4</version>
<configuration>
<!--这个很重要,打包本地jar包-->
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
<!-- maven 编译插件 maven-compiler-plugin -->
<!-- 用于指定编译器的源代码版本、目标版本和编码方式 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven.compiler.version}</version>
<configuration>
<!-- 指定maven编译版本: maven3默认使用的是jdk1.5,maven2默认使用的是jdk1.3 -->
<source>${maven.compiler.source}</source><!-- 源代码使用的JDK版本 -->
<target>${maven.compiler.target}</target><!-- 需要生成的目标class文件的编译版本 -->
<encoding>UTF-8</encoding><!-- 字符集编码 -->
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok-version}</version>
</path>
<path>
<groupId>org.mapstruct</groupId>
<artifactId>mapstruct-processor</artifactId>
<version>${org.mapstruct.version}</version>
</path>
</annotationProcessorPaths>
<compilerArgs>
<!-- 确保项目的Java编译器使用了-parameters选项。
这个选项告诉编译器在生成字节码时包含方法参数的名称信息,
这对于Spring来说很重要,因为它依赖于这些名称来解析方法参数。-->
<arg>-parameters</arg>
</compilerArgs>
</configuration>
</plugin>
</plugins>
<!-- 打包所有jar包 -->
<resources>
<!-- 不编译resources下的配置文件 -->
<resource>
<directory>src/main/resources</directory><!-- 指定资源配置文件所在目录-->
<includes>
<include>application.yml</include>
<include>application-${profiles.active}.yml</include>
<include>logback-spring.xml</include>
<include>logback-spring-${profiles.active}.xml</include>
<include>**/*.xml</include>
</includes>
<!--maven 编译时会替换文件里面的变量-->
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>*.jks</include>
</includes>
<!-- 防止JKS被maven错误解析 -->
<filtering>false</filtering>
</resource>
</resources>
</build>
<!-- 创建多环境:可使用 mvn install -P local 命令进行不同环境的打包 -->
<profiles>
<!-- 定义具体的环境-->
<profile>
<!-- 本地开发环境 -->
<id>local</id> <!-- 定义环境对应的唯一id-->
<!-- 定义环境中换用的属性(即定义不同环境中各自不同的属性) -->
<properties>
<profiles.active>local</profiles.active>
</properties>
<!-- 设置默认启动(即该环境为默认的环境,触发使用命令手动指定环境)-->
<activation>
<activeByDefault>true</activeByDefault>
</activation>
</profile>
<profile>
<!-- 开发环境 -->
<id>dev</id>
<properties>
<profiles.active>dev</profiles.active>
</properties>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
</profile>
<profile>
<!-- 测试环境 -->
<id>test</id>
<properties>
<profiles.active>test</profiles.active>
</properties>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
</profile>
<profile>
<id>uat</id>
<properties>
<profiles.active>uat</profiles.active>
</properties>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
</profile>
<profile>
<!-- 生产环境 -->
<id>prod</id>
<properties>
<profiles.active>prod</profiles.active>
</properties>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
</profile>
</profiles>
<repositories>
<repository>
<id>alimaven</id>
<name>aliyun maven</name>
<url>https://maven.aliyun.com/nexus/content/repositories/central/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>alimaven</id>
<name>aliyun maven</name>
<url>https://maven.aliyun.com/nexus/content/repositories/central/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</project>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/ninghongkang/honghe-finance.git
git@gitee.com:ninghongkang/honghe-finance.git
ninghongkang
honghe-finance
HongheFinance
master

搜索帮助