|
@@ -0,0 +1,451 @@
|
|
|
+<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
+ <modelVersion>4.0.0</modelVersion>
|
|
|
+ <parent>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-parent</artifactId>
|
|
|
+ <version>2.7.13</version>
|
|
|
+ <relativePath/> <!-- lookup parent from repository -->
|
|
|
+ </parent>
|
|
|
+
|
|
|
+ <groupId>com.customs.cq.datacenter</groupId>
|
|
|
+ <artifactId>secure-producting</artifactId>
|
|
|
+ <version>0.0.1-SNAPSHOT</version>
|
|
|
+ <packaging>pom</packaging>
|
|
|
+
|
|
|
+ <modules>
|
|
|
+ <module>secure-producting-common</module>
|
|
|
+ <module>secure-producting-framework</module>
|
|
|
+ <module>secure-producting-system</module>
|
|
|
+ <module>secure-producting-business</module>
|
|
|
+ <module>secure-producting-host</module>
|
|
|
+ <module>secure-producting-oss</module>
|
|
|
+ </modules>
|
|
|
+
|
|
|
+ <properties>
|
|
|
+ <java.version>1.8</java.version>
|
|
|
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
+ <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
|
+
|
|
|
+ <spring-boot.version>2.7.13</spring-boot.version>
|
|
|
+ <maven-jar-plugin.version>3.2.2</maven-jar-plugin.version>
|
|
|
+ <spring-boot.mybatis>2.2.2</spring-boot.mybatis>
|
|
|
+ <poi.version>5.2.3</poi.version>
|
|
|
+ <easyexcel.version>3.3.4</easyexcel.version>
|
|
|
+ <satoken.version>1.35.0.RC</satoken.version>
|
|
|
+ <mybatis-plus.version>3.5.3.1</mybatis-plus.version>
|
|
|
+ <p6spy.version>3.9.1</p6spy.version>
|
|
|
+ <hutool.version>5.8.18</hutool.version>
|
|
|
+ <redisson.version>3.20.1</redisson.version>
|
|
|
+ <lock4j.version>2.2.3</lock4j.version>
|
|
|
+ <dynamic-ds.version>3.5.2</dynamic-ds.version>
|
|
|
+ <alibaba-ttl.version>2.14.2</alibaba-ttl.version>
|
|
|
+ <lombok.version>1.16.10</lombok.version>
|
|
|
+ <bouncycastle.version>1.72</bouncycastle.version>
|
|
|
+ <!-- 离线IP地址定位库 -->
|
|
|
+ <ip2region.version>2.7.0</ip2region.version>
|
|
|
+
|
|
|
+ <!-- 临时修复 snakeyaml 漏洞 -->
|
|
|
+ <snakeyaml.version>1.33</snakeyaml.version>
|
|
|
+
|
|
|
+ <!-- OSS 配置 -->
|
|
|
+ <aws-java-sdk-s3.version>1.12.400</aws-java-sdk-s3.version>
|
|
|
+
|
|
|
+ <!-- apache http -->
|
|
|
+ <apache.http.version>4.5.14</apache.http.version>
|
|
|
+ <!-- json -->
|
|
|
+ <gson.version>2.8.0</gson.version>
|
|
|
+
|
|
|
+ <!-- 获取系统信息 -->
|
|
|
+ <oshi.version>5.8.2</oshi.version>
|
|
|
+ </properties>
|
|
|
+
|
|
|
+ <!-- 环境申明 -->
|
|
|
+ <profiles>
|
|
|
+ <profile>
|
|
|
+ <id>jeff</id>
|
|
|
+ <properties>
|
|
|
+ <!-- 环境标识,需要与配置文件的名称相对应 -->
|
|
|
+ <profiles.active>jeff</profiles.active>
|
|
|
+ <logging.level>debug</logging.level>
|
|
|
+ <package.buildName>-${project.version}</package.buildName>
|
|
|
+ </properties>
|
|
|
+ </profile>
|
|
|
+ <profile>
|
|
|
+ <id>dev</id>
|
|
|
+ <properties>
|
|
|
+ <!-- 环境标识,需要与配置文件的名称相对应 -->
|
|
|
+ <profiles.active>dev</profiles.active>
|
|
|
+ <logging.level>debug</logging.level>
|
|
|
+ <package.buildName>-${project.version}</package.buildName>
|
|
|
+ </properties>
|
|
|
+ <activation>
|
|
|
+ <!-- 默认环境 -->
|
|
|
+ <activeByDefault>true</activeByDefault>
|
|
|
+ </activation>
|
|
|
+ </profile>
|
|
|
+ <profile>
|
|
|
+ <id>prod</id>
|
|
|
+ <properties>
|
|
|
+ <profiles.active>prod</profiles.active>
|
|
|
+ <logging.level>warn</logging.level>
|
|
|
+ <package.buildName></package.buildName>
|
|
|
+ </properties>
|
|
|
+ </profile>
|
|
|
+ </profiles>
|
|
|
+
|
|
|
+ <!-- 依赖声明 -->
|
|
|
+ <dependencyManagement>
|
|
|
+ <dependencies>
|
|
|
+ <!--=================================== 项目本身模块 - start ===================================-->
|
|
|
+ <!-- 通用工具 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>${project.groupId}</groupId>
|
|
|
+ <artifactId>secure-producting-common</artifactId>
|
|
|
+ <version>${project.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <!-- 核心模块 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>${project.groupId}</groupId>
|
|
|
+ <artifactId>secure-producting-framework</artifactId>
|
|
|
+ <version>${project.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <!-- OSS对象存储模块 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>${project.groupId}</groupId>
|
|
|
+ <artifactId>secure-producting-oss</artifactId>
|
|
|
+ <version>${project.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <!-- 系统模块 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>${project.groupId}</groupId>
|
|
|
+ <artifactId>secure-producting-system</artifactId>
|
|
|
+ <version>${project.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <!-- 业务模块 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>${project.groupId}</groupId>
|
|
|
+ <artifactId>secure-producting-business</artifactId>
|
|
|
+ <version>${project.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <!-- 程序启动入口 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>${project.groupId}</groupId>
|
|
|
+ <artifactId>secure-producting-host</artifactId>
|
|
|
+ <version>${project.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <!--=================================== 项目本身模块 - end ===================================-->
|
|
|
+
|
|
|
+ <!-- hutool 的依赖配置-->
|
|
|
+ <dependency>
|
|
|
+ <groupId>cn.hutool</groupId>
|
|
|
+ <artifactId>hutool-bom</artifactId>
|
|
|
+ <version>${hutool.version}</version>
|
|
|
+ <type>pom</type>
|
|
|
+ <scope>import</scope>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.projectlombok</groupId>
|
|
|
+ <artifactId>lombok</artifactId>
|
|
|
+ <version>${lombok.version}</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.poi</groupId>
|
|
|
+ <artifactId>poi</artifactId>
|
|
|
+ <version>${poi.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.poi</groupId>
|
|
|
+ <artifactId>poi-ooxml</artifactId>
|
|
|
+ <version>${poi.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.alibaba</groupId>
|
|
|
+ <artifactId>easyexcel</artifactId>
|
|
|
+ <version>${easyexcel.version}</version>
|
|
|
+ <exclusions>
|
|
|
+ <exclusion>
|
|
|
+ <groupId>org.apache.poi</groupId>
|
|
|
+ <artifactId>poi-ooxml-schemas</artifactId>
|
|
|
+ </exclusion>
|
|
|
+ </exclusions>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.alibaba</groupId>
|
|
|
+ <artifactId>easyexcel-core</artifactId>
|
|
|
+ <version>${easyexcel.version}</version>
|
|
|
+ <exclusions>
|
|
|
+ <exclusion>
|
|
|
+ <artifactId>xmlbeans</artifactId>
|
|
|
+ <groupId>org.apache.xmlbeans</groupId>
|
|
|
+ </exclusion>
|
|
|
+ <exclusion>
|
|
|
+ <artifactId>commons-io</artifactId>
|
|
|
+ <groupId>commons-io</groupId>
|
|
|
+ </exclusion>
|
|
|
+ </exclusions>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- Sa-Token 权限认证, 在线文档:http://sa-token.dev33.cn/ -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>cn.dev33</groupId>
|
|
|
+ <artifactId>sa-token-spring-boot-starter</artifactId>
|
|
|
+ <version>${satoken.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <!-- Sa-Token 整合 jwt -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>cn.dev33</groupId>
|
|
|
+ <artifactId>sa-token-jwt</artifactId>
|
|
|
+ <version>${satoken.version}</version>
|
|
|
+ <exclusions>
|
|
|
+ <exclusion>
|
|
|
+ <groupId>cn.hutool</groupId>
|
|
|
+ <artifactId>hutool-all</artifactId>
|
|
|
+ </exclusion>
|
|
|
+ </exclusions>
|
|
|
+ </dependency>
|
|
|
+ <!-- Sa-Token 整合 jwt -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>cn.dev33</groupId>
|
|
|
+ <artifactId>sa-token-core</artifactId>
|
|
|
+ <version>${satoken.version}</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- dynamic-datasource 多数据源-->
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.baomidou</groupId>
|
|
|
+ <artifactId>dynamic-datasource-spring-boot-starter</artifactId>
|
|
|
+ <version>${dynamic-ds.version}</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- mybatis-plus -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.baomidou</groupId>
|
|
|
+ <artifactId>mybatis-plus-boot-starter</artifactId>
|
|
|
+ <version>${mybatis-plus.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.baomidou</groupId>
|
|
|
+ <artifactId>mybatis-plus-core</artifactId>
|
|
|
+ <version>${mybatis-plus.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.baomidou</groupId>
|
|
|
+ <artifactId>mybatis-plus-extension</artifactId>
|
|
|
+ <version>${mybatis-plus.version}</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- sql性能分析插件 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>p6spy</groupId>
|
|
|
+ <artifactId>p6spy</artifactId>
|
|
|
+ <version>${p6spy.version}</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.amazonaws</groupId>
|
|
|
+ <artifactId>aws-java-sdk-s3</artifactId>
|
|
|
+ <version>${aws-java-sdk-s3.version}</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!--redisson-->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.redisson</groupId>
|
|
|
+ <artifactId>redisson-spring-boot-starter</artifactId>
|
|
|
+ <version>${redisson.version}</version>
|
|
|
+ <exclusions>
|
|
|
+ <exclusion>
|
|
|
+ <groupId>org.redisson</groupId>
|
|
|
+ <artifactId>redisson-spring-data-30</artifactId>
|
|
|
+ </exclusion>
|
|
|
+ </exclusions>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.redisson</groupId>
|
|
|
+ <artifactId>redisson-spring-data-27</artifactId>
|
|
|
+ <version>${redisson.version}</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.baomidou</groupId>
|
|
|
+ <artifactId>lock4j-redisson-spring-boot-starter</artifactId>
|
|
|
+ <version>${lock4j.version}</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.alibaba</groupId>
|
|
|
+ <artifactId>transmittable-thread-local</artifactId>
|
|
|
+ <version>${alibaba-ttl.version}</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- 离线IP地址定位库 ip2region -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.lionsoul</groupId>
|
|
|
+ <artifactId>ip2region</artifactId>
|
|
|
+ <version>${ip2region.version}</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- 临时修复 snakeyaml 漏洞 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.yaml</groupId>
|
|
|
+ <artifactId>snakeyaml</artifactId>
|
|
|
+ <version>${snakeyaml.version}</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- 加密包引入 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.bouncycastle</groupId>
|
|
|
+ <artifactId>bcprov-jdk15to18</artifactId>
|
|
|
+ <version>${bouncycastle.version}</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- http请求相关 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.httpcomponents</groupId>
|
|
|
+ <artifactId>httpmime</artifactId>
|
|
|
+ <version>${apache.http.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <!-- json -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.google.code.gson</groupId>
|
|
|
+ <artifactId>gson</artifactId>
|
|
|
+ <version>${gson.version}</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!--mapStruct依赖 高性能对象映射-->
|
|
|
+ <!--mapstruct核心-->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.mapstruct</groupId>
|
|
|
+ <artifactId>mapstruct</artifactId>
|
|
|
+ <version>1.5.0.Beta1</version>
|
|
|
+ </dependency>
|
|
|
+ <!--mapstruct编译-->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.mapstruct</groupId>
|
|
|
+ <artifactId>mapstruct-processor</artifactId>
|
|
|
+ <version>1.5.0.Beta1</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- 中文转拼音 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.belerweb</groupId>
|
|
|
+ <artifactId>pinyin4j</artifactId>
|
|
|
+ <version>2.5.0</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!--quartz依赖-->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-quartz</artifactId>
|
|
|
+ <version>2.0.3.RELEASE</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- 获取系统信息 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.github.oshi</groupId>
|
|
|
+ <artifactId>oshi-core</artifactId>
|
|
|
+ <version>${oshi.version}</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- hibernate.validator -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.hibernate.validator</groupId>
|
|
|
+ <artifactId>hibernate-validator</artifactId>
|
|
|
+ <version>6.0.13.Final</version>
|
|
|
+ </dependency>
|
|
|
+ </dependencies>
|
|
|
+ </dependencyManagement>
|
|
|
+
|
|
|
+ <!-- 所有模块都需要的依赖 -->
|
|
|
+ <dependencies>
|
|
|
+ <!-- SpringWeb模块 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework</groupId>
|
|
|
+ <artifactId>spring-web</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework</groupId>
|
|
|
+ <artifactId>spring-webmvc</artifactId>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- 自动getter/setter -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.projectlombok</groupId>
|
|
|
+ <artifactId>lombok</artifactId>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!--mapstruct核心-->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.mapstruct</groupId>
|
|
|
+ <artifactId>mapstruct</artifactId>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.fasterxml.jackson.core</groupId>
|
|
|
+ <artifactId>jackson-annotations</artifactId>
|
|
|
+ </dependency>
|
|
|
+ </dependencies>
|
|
|
+
|
|
|
+ <build>
|
|
|
+ <plugins>
|
|
|
+ <!-- smart-doc 自动生成接口文档 -->
|
|
|
+ <plugin>
|
|
|
+ <groupId>com.github.shalousun</groupId>
|
|
|
+ <artifactId>smart-doc-maven-plugin</artifactId>
|
|
|
+ <version>2.2.7</version>
|
|
|
+ <configuration>
|
|
|
+ <!--指定生成文档的使用的配置文件,配置文件放在自己的项目中-->
|
|
|
+ <configFile>./src/main/resources/smart-doc.json</configFile>
|
|
|
+ <!--指定项目名称-->
|
|
|
+ <projectName>重庆海关安全生产网格化智慧管理平台-接口文档</projectName>
|
|
|
+ <!--smart-doc实现自动分析依赖树加载第三方依赖的源码,如果一些框架依赖库加载不到导致报错,这时请使用excludes排除掉-->
|
|
|
+ <!--<excludes>
|
|
|
+ <!–格式为:groupId:artifactId;参考如下–>
|
|
|
+ <exclude>com.alibaba:fastjson</exclude>
|
|
|
+ </excludes>-->
|
|
|
+
|
|
|
+ <!--自1.0.8版本开始,插件提供includes支持,配置了includes后插件会按照用户配置加载而不是自动加载,因此使用时需要注意-->
|
|
|
+ <!--smart-doc能自动分析依赖树加载所有依赖源码,原则上会影响文档构建效率,因此你可以使用includes来让插件加载你配置的组件-->
|
|
|
+ <!--<includes>
|
|
|
+ <!–格式为:groupId:artifactId;参考如下–>
|
|
|
+ <!–也可以支持正则式如:com.alibaba:.* –>
|
|
|
+ <include>com.alibaba:fastjson</include>
|
|
|
+ </includes>-->
|
|
|
+ </configuration>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <!--如果不需要在执行编译时启动smart-doc,则将phase注释掉-->
|
|
|
+ <!--<phase>compile</phase>-->
|
|
|
+ <goals>
|
|
|
+ <!--smart-doc提供了html、openapi、markdown等goal,可按需配置-->
|
|
|
+ <goal>html</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ </plugins>
|
|
|
+
|
|
|
+ <resources>
|
|
|
+ <resource>
|
|
|
+ <directory>src/main/resources</directory>
|
|
|
+ <!-- 关闭过滤 -->
|
|
|
+ <filtering>false</filtering>
|
|
|
+ </resource>
|
|
|
+
|
|
|
+ <resource>
|
|
|
+ <directory>src/main/resources</directory>
|
|
|
+ <!-- 引入所有 匹配文件进行过滤 -->
|
|
|
+ <includes>
|
|
|
+ <include>application*</include>
|
|
|
+ <include>bootstrap*</include>
|
|
|
+ <include>banner*</include>
|
|
|
+ </includes>
|
|
|
+ <!-- 启用过滤 即该资源中的变量将会被过滤器中的值替换 -->
|
|
|
+ <filtering>true</filtering>
|
|
|
+ </resource>
|
|
|
+ </resources>
|
|
|
+ </build>
|
|
|
+</project>
|