277 lines
9.9 KiB
XML
277 lines
9.9 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">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<groupId>com.xiang</groupId>
|
|
<artifactId>xservice-basic</artifactId>
|
|
<version>2.0</version>
|
|
<packaging>pom</packaging>
|
|
<modules>
|
|
<module>xservice-common</module>
|
|
<module>xservice-cache-starter</module>
|
|
<module>xservice-message-starter</module>
|
|
<module>xservice-mysql-starter</module>
|
|
<module>xservice-schedule-starter</module>
|
|
<module>xservice-http-starter</module>
|
|
</modules>
|
|
|
|
<properties>
|
|
<java.version>17</java.version>
|
|
<spring.boot.version>2.7.18</spring.boot.version>
|
|
<spring.cloud.version>2021.0.8</spring.cloud.version>
|
|
<spring.cloud.alibaba.version>2021.1</spring.cloud.alibaba.version>
|
|
<mybatis.spring.boot.version>2.2.2</mybatis.spring.boot.version>
|
|
<rocketmq.version>5.1.4</rocketmq.version>
|
|
<mysql.version>8.0.33</mysql.version>
|
|
<fastjson2.version>2.0.51</fastjson2.version>
|
|
<maven.compiler.source>${java.version}</maven.compiler.source>
|
|
<maven.compiler.target>${java.version}</maven.compiler.target>
|
|
<encoding>UTF-8</encoding>
|
|
<guava.version>16.0.1</guava.version>
|
|
<mybatis-spring-boot.version>2.3.1</mybatis-spring-boot.version>
|
|
<mysql.version>8.0.33</mysql.version>
|
|
<lombok.version>1.18.30</lombok.version>
|
|
<spring-data-redis.version>3.23.6</spring-data-redis.version>
|
|
<rocketmq.version>2.2.3</rocketmq.version>
|
|
<spring.authorization.server.version>0.4.0</spring.authorization.server.version>
|
|
</properties>
|
|
|
|
<dependencyManagement>
|
|
<dependencies>
|
|
<!-- Spring Boot BOM -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-dependencies</artifactId>
|
|
<version>${spring.boot.version}</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
|
|
<!-- Spring Cloud BOM -->
|
|
<dependency>
|
|
<groupId>org.springframework.cloud</groupId>
|
|
<artifactId>spring-cloud-dependencies</artifactId>
|
|
<version>${spring.cloud.version}</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
|
|
<!-- Spring Cloud Alibaba -->
|
|
<dependency>
|
|
<groupId>com.alibaba.cloud</groupId>
|
|
<artifactId>spring-cloud-alibaba-dependencies</artifactId>
|
|
<version>${spring.cloud.alibaba.version}</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
</dependencyManagement>
|
|
|
|
<dependencies>
|
|
<!-- 网关核心 -->
|
|
<dependency>
|
|
<groupId>org.springframework.cloud</groupId>
|
|
<artifactId>spring-cloud-starter-gateway</artifactId>
|
|
</dependency>
|
|
|
|
<!-- 监控链路 -->
|
|
<dependency>
|
|
<groupId>org.springframework.cloud</groupId>
|
|
<artifactId>spring-cloud-starter-sleuth</artifactId>
|
|
</dependency>
|
|
|
|
<!-- nacos 配置中心 -->
|
|
<dependency>
|
|
<groupId>com.alibaba.cloud</groupId>
|
|
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
|
</dependency>
|
|
|
|
<!-- nacos 服务注册发现-->
|
|
<dependency>
|
|
<groupId>com.alibaba.cloud</groupId>
|
|
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
|
</dependency>
|
|
|
|
<!--spring security -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-security</artifactId>
|
|
</dependency>
|
|
|
|
<!-- Authorization Server -->
|
|
<dependency>
|
|
<groupId>org.springframework.security</groupId>
|
|
<artifactId>spring-security-oauth2-authorization-server</artifactId>
|
|
<version>${spring.authorization.server.version}</version>
|
|
</dependency>
|
|
<!-- oauth2 server-->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-oauth2-resource-server</artifactId>
|
|
</dependency>
|
|
|
|
<!-- JWT (optional: for convenience) -->
|
|
<dependency>
|
|
<groupId>org.springframework.security</groupId>
|
|
<artifactId>spring-security-oauth2-jose</artifactId>
|
|
<version>5.7.11</version>
|
|
</dependency>
|
|
|
|
<!-- MySQL -->
|
|
<dependency>
|
|
<groupId>mysql</groupId>
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
<version>${mysql.version}</version>
|
|
</dependency>
|
|
|
|
<!-- MyBatis -->
|
|
<dependency>
|
|
<groupId>org.mybatis.spring.boot</groupId>
|
|
<artifactId>mybatis-spring-boot-starter</artifactId>
|
|
<version>${mybatis-spring-boot.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-aop</artifactId>
|
|
</dependency>
|
|
|
|
<!-- Redis -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-data-redis</artifactId>
|
|
</dependency>
|
|
|
|
<!-- RocketMQ -->
|
|
<dependency>
|
|
<groupId>org.apache.rocketmq</groupId>
|
|
<artifactId>rocketmq-spring-boot-starter</artifactId>
|
|
<version>${rocketmq.version}</version>
|
|
</dependency>
|
|
|
|
<!-- Lombok -->
|
|
<dependency>
|
|
<groupId>org.projectlombok</groupId>
|
|
<artifactId>lombok</artifactId>
|
|
<version>${lombok.version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<!-- 常用工具 -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>commons-io</groupId>
|
|
<artifactId>commons-io</artifactId>
|
|
<version>2.18.0</version>
|
|
</dependency>
|
|
<!-- 分页插件 -->
|
|
<dependency>
|
|
<groupId>com.github.pagehelper</groupId>
|
|
<artifactId>pagehelper</artifactId>
|
|
<version>5.3.3</version>
|
|
</dependency>
|
|
<!-- 对象转换 -->
|
|
<dependency>
|
|
<groupId>org.mapstruct</groupId>
|
|
<artifactId>mapstruct</artifactId>
|
|
<version>1.5.5.Final</version>
|
|
</dependency>
|
|
|
|
<!-- http -->
|
|
<dependency>
|
|
<groupId>org.apache.httpcomponents</groupId>
|
|
<artifactId>httpclient</artifactId>
|
|
<version>4.5.13</version>
|
|
</dependency>
|
|
|
|
<!-- collections -->
|
|
<dependency>
|
|
<groupId>com.google.guava</groupId>
|
|
<artifactId>guava</artifactId>
|
|
<version>32.0.1-android</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.commons</groupId>
|
|
<artifactId>commons-collections4</artifactId>
|
|
<version>4.2</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.commons</groupId>
|
|
<artifactId>commons-lang3</artifactId>
|
|
<version>3.15.0</version>
|
|
</dependency>
|
|
|
|
<!-- json -->
|
|
<dependency>
|
|
<groupId>com.alibaba.fastjson2</groupId>
|
|
<artifactId>fastjson2</artifactId>
|
|
<version>2.0.51</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
<artifactId>jackson-databind</artifactId>
|
|
</dependency>
|
|
|
|
<!-- ssh -->
|
|
<dependency>
|
|
<groupId>com.jcraft</groupId>
|
|
<artifactId>jsch</artifactId>
|
|
<version>0.1.55</version>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<!-- 统一 compiler 插件 -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>3.11.0</version>
|
|
<configuration>
|
|
<source>${java.version}</source>
|
|
<target>${java.version}</target>
|
|
<encoding>${encoding}</encoding>
|
|
<parameters>true</parameters>
|
|
<annotationProcessorPaths>
|
|
<!-- Lombok -->
|
|
<path>
|
|
<groupId>org.projectlombok</groupId>
|
|
<artifactId>lombok</artifactId>
|
|
<version>1.18.30</version>
|
|
</path>
|
|
<!-- MapStruct -->
|
|
<path>
|
|
<groupId>org.mapstruct</groupId>
|
|
<artifactId>mapstruct-processor</artifactId>
|
|
<version>1.5.5.Final</version>
|
|
</path>
|
|
|
|
</annotationProcessorPaths>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<!-- spring boot 插件 -->
|
|
<plugin>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<distributionManagement>
|
|
<repository>
|
|
<id>release</id>
|
|
<url>http://mirror.xiangtech.xyz/repository/maven-releases/</url>
|
|
</repository>
|
|
<snapshotRepository>
|
|
<id>snapshot</id>
|
|
<url>http://mirror.xiangtech.xyz/repository/maven-snapshots/</url>
|
|
</snapshotRepository>
|
|
</distributionManagement>
|
|
</project> |