| | |
| | | |
| | | <properties> |
| | | |
| | | <revision>0.0.1</revision> |
| | | <revision>1.0.0</revision> |
| | | <!-- Maven 相关 --> |
| | | <java.version>1.8</java.version> |
| | | <maven.compiler.source>${java.version}</maven.compiler.source> |
| | |
| | | <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version> |
| | | <flatten-maven-plugin.version>1.5.0</flatten-maven-plugin.version> |
| | | <!-- 统一依赖管理 --> |
| | | <spring.framework.version>5.3.39</spring.framework.version> |
| | | <spring.security.version>5.8.14</spring.security.version> |
| | | <spring.boot.version>2.7.18</spring.boot.version> |
| | | <spring.cloud.version>2021.0.9</spring.cloud.version> |
| | | <spring.cloud.alibaba.version>2021.0.6.1</spring.cloud.alibaba.version> |
| | |
| | | <ip2region.version>2.7.0</ip2region.version> |
| | | <bizlog-sdk.version>3.0.6</bizlog-sdk.version> |
| | | <reflections.version>0.10.2</reflections.version> |
| | | <!-- 三方云服务相关 --> |
| | | <okio.version>3.5.0</okio.version> |
| | | <okhttp3.version>4.11.0</okhttp3.version> |
| | | <commons-io.version>2.15.1</commons-io.version> |
| | | <minio.version>8.5.7</minio.version> |
| | | <aliyun-java-sdk-core.version>4.6.4</aliyun-java-sdk-core.version> |
| | | <aliyun-java-sdk-dysmsapi.version>2.2.1</aliyun-java-sdk-dysmsapi.version> |
| | | <tencentcloud-sdk-java.version>3.1.880</tencentcloud-sdk-java.version> |
| | | <justauth.version>1.0.8</justauth.version> |
| | | <jimureport.version>1.6.6</jimureport.version> |
| | | <xercesImpl.version>2.12.2</xercesImpl.version> |
| | | <weixin-java.version>4.6.0</weixin-java.version> |
| | | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| | | </properties> |
| | | |
| | | <dependencyManagement> |
| | | <dependencies> |
| | | <!-- 统一依赖管理 --> |
| | | <dependency> |
| | | <groupId>org.springframework</groupId> |
| | | <artifactId>spring-framework-bom</artifactId> <!-- JDK8 版本独有:保证 Spring Framework 尽量高 --> |
| | | <version>${spring.framework.version}</version> |
| | | <type>pom</type> |
| | | <scope>import</scope> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>org.springframework.security</groupId> |
| | | <artifactId>spring-security-bom</artifactId> <!-- JDK8 版本独有:保证 Spring Security 尽量高 --> |
| | | <version>${spring.security.version}</version> |
| | | <type>pom</type> |
| | | <scope>import</scope> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-dependencies</artifactId> |
| | |
| | | <version>${revision}</version> |
| | | </dependency> |
| | | |
| | | <!-- Spring 核心 --> |
| | | <dependency> |
| | | <!-- 用于生成自定义的 Spring @ConfigurationProperties 配置类的说明文件 --> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-configuration-processor</artifactId> |
| | | <version>${spring.boot.version}</version> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>com.iailab</groupId> |
| | | <artifactId>iailab-common-env</artifactId> |
| | | <version>${revision}</version> |
| | | </dependency> |
| | | |
| | | <!-- Web 相关 --> |
| | | <dependency> |
| | |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>com.iailab</groupId> |
| | | <artifactId>iailab-common-websocket</artifactId> |
| | | <version>${revision}</version> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>org.springdoc</groupId> <!-- 接口文档 UI:默认 --> |
| | | <artifactId>springdoc-openapi-ui</artifactId> |
| | | <version>${springdoc.version}</version> |
| | |
| | | <artifactId>knife4j-openapi3-spring-boot-starter</artifactId> |
| | | <version>${knife4j.version}</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>com.github.xiaoymin</groupId> <!-- 接口文档 UI:knife4j【网关专属】 --> |
| | | <artifactId>knife4j-gateway-spring-boot-starter</artifactId> |
| | | <version>${knife4j.version}</version> |
| | | </dependency> |
| | | |
| | | <!-- DB 相关 --> |
| | | <dependency> |
| | | <groupId>com.iailab</groupId> |
| | | <artifactId>iailab-common-mybatis</artifactId> |
| | | <version>${revision}</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>org.springdoc</groupId> |
| | | <artifactId>springdoc-openapi-webflux-ui</artifactId> |
| | | <version>${springdoc.version}</version> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | |
| | | <artifactId>mybatis-plus-boot-starter</artifactId> |
| | | <version>${mybatis-plus.version}</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>com.baomidou</groupId> |
| | | <artifactId>mybatis-plus-generator</artifactId> <!-- 代码生成器,使用它解析表结构 --> |
| | | <version>${mybatis-plus-generator.version}</version> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>com.baomidou</groupId> |
| | | <artifactId>dynamic-datasource-spring-boot-starter</artifactId> <!-- 多数据源 --> |
| | |
| | | <version>${redisson.version}</version> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>com.dameng</groupId> |
| | | <artifactId>DmJdbcDriver18</artifactId> |
| | | <version>${dm8.jdbc.version}</version> |
| | | </dependency> |
| | | |
| | | <!-- RPC 远程调用相关 --> |
| | | <dependency> |
| | | <groupId>com.iailab</groupId> |
| | | <artifactId>iailab-common-rpc</artifactId> |
| | | <version>${revision}</version> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>com.baomidou</groupId> |
| | | <artifactId>lock4j-redisson-spring-boot-starter</artifactId> |
| | | <version>${lock4j.version}</version> |
| | | <exclusions> |
| | | <exclusion> |
| | | <artifactId>redisson-spring-boot-starter</artifactId> |
| | | <groupId>org.redisson</groupId> |
| | | </exclusion> |
| | | </exclusions> |
| | | </dependency> |
| | | |
| | | <!-- 监控相关 --> |
| | |
| | | <version>${easyexcel.verion}</version> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>commons-io</groupId> |
| | | <artifactId>commons-io</artifactId> |
| | | <version>${commons-io.version}</version> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>org.apache.tika</groupId> |
| | | <artifactId>tika-core</artifactId> <!-- 文件类型的识别 --> |
| | | <version>${tika-core.version}</version> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>org.apache.velocity</groupId> |
| | | <artifactId>velocity-engine-core</artifactId> |
| | | <version>${velocity.version}</version> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>com.alibaba</groupId> |
| | | <artifactId>fastjson</artifactId> |
| | | <version>${fastjson.version}</version> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>cn.smallbun.screw</groupId> |
| | | <artifactId>screw-core</artifactId> <!-- 实现数据库文档 --> |
| | | <version>${screw.version}</version> |
| | | <exclusions> |
| | | <exclusion> |
| | | <groupId>org.freemarker</groupId> |
| | | <artifactId>freemarker</artifactId> <!-- 移除 Freemarker 依赖,采用 Velocity 作为模板引擎 --> |
| | | </exclusion> |
| | | <exclusion> |
| | | <groupId>com.alibaba</groupId> |
| | | <artifactId>fastjson</artifactId> <!-- 最新版screw-core1.0.5依赖fastjson1.2.73存在漏洞,移除。 --> |
| | | </exclusion> |
| | | </exclusions> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>com.google.inject</groupId> |
| | | <artifactId>guice</artifactId> |
| | | <version>${guice.version}</version> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>com.alibaba</groupId> |
| | | <artifactId>transmittable-thread-local</artifactId> <!-- 解决 ThreadLocal 父子线程的传值问题 --> |
| | | <version>${transmittable-thread-local.version}</version> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>commons-net</groupId> |
| | | <artifactId>commons-net</artifactId> <!-- 解决 ftp 连接 --> |
| | | <version>${commons-net.version}</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>com.jcraft</groupId> |
| | | <artifactId>jsch</artifactId> <!-- 解决 sftp 连接 --> |
| | | <version>${jsch.version}</version> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | |
| | | <version>${reflections.version}</version> |
| | | </dependency> |
| | | |
| | | <!-- 三方云服务相关 --> |
| | | <dependency> |
| | | <groupId>com.squareup.okio</groupId> |
| | | <artifactId>okio</artifactId> |
| | | <version>${okio.version}</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>com.squareup.okhttp3</groupId> |
| | | <artifactId>okhttp</artifactId> |
| | | <version>${okhttp3.version}</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>io.minio</groupId> |
| | | <artifactId>minio</artifactId> |
| | | <version>${minio.version}</version> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>com.github.binarywang</groupId> |
| | | <artifactId>weixin-java-pay</artifactId> |
| | | <version>${weixin-java.version}</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>com.github.binarywang</groupId> |
| | | <artifactId>wx-java-mp-spring-boot-starter</artifactId> |
| | | <version>${weixin-java.version}</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>com.github.binarywang</groupId> |
| | | <artifactId>wx-java-miniapp-spring-boot-starter</artifactId> |
| | | <version>${weixin-java.version}</version> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>com.xingyuv</groupId> |
| | | <artifactId>spring-boot-starter-justauth</artifactId> <!-- 社交登陆(例如说,个人微信、企业微信等等) --> |
| | | <version>${justauth.version}</version> |
| | | <exclusions> |
| | | <exclusion> |
| | | <groupId>cn.hutool</groupId> |
| | | <artifactId>hutool-core</artifactId> |
| | | </exclusion> |
| | | </exclusions> |
| | | </dependency> |
| | | |
| | | </dependencies> |
| | | </dependencyManagement> |
| | | |
| | | <build> |
| | | <!-- 设置构建的 jar 包名 --> |
| | | <finalName>${project.artifactId}</finalName> |
| | | <plugins> |
| | | <!-- 打包 --> |
| | | <plugin> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-maven-plugin</artifactId> |
| | | <version>${spring.boot.version}</version> |
| | | <executions> |
| | | <execution> |
| | | <goals> |
| | | <goal>repackage</goal> <!-- 将引入的 jar 打入其中 --> |
| | | </goals> |
| | | </execution> |
| | | </executions> |
| | | </plugin> |
| | | </plugins> |
| | | <pluginManagement> |
| | | <plugins> |
| | | <!-- maven-surefire-plugin 插件,用于运行单元测试。 --> |
| | | <!-- 注意,需要使用 3.0.X+,因为要支持 Junit 5 版本 --> |
| | | <plugin> |
| | | <groupId>org.apache.maven.plugins</groupId> |
| | | <artifactId>maven-surefire-plugin</artifactId> |
| | | <version>${maven-surefire-plugin.version}</version> |
| | | <configuration> |
| | | <skip>true</skip> |
| | | </configuration> |
| | | </plugin> |
| | | <!-- maven-compiler-plugin 插件,解决 Lombok + MapStruct 组合 --> |
| | | </plugins> |
| | | </pluginManagement> |
| | | </build> |
| | | |
| | | |