275 lines
		
	
	
		
			9.1 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
		
		
			
		
	
	
			275 lines
		
	
	
		
			9.1 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 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
|  |     <modelVersion>4.0.0</modelVersion> | ||
|  | 
 | ||
|  |     <groupId>com.sczx</groupId> | ||
|  |     <artifactId>sczx_car</artifactId> | ||
|  |     <version>1.0.0</version> | ||
|  |     <packaging>jar</packaging> | ||
|  | 
 | ||
|  |     <name>sczx_car</name> | ||
|  |     <description>sczx_car service</description> | ||
|  | 
 | ||
|  |     <properties> | ||
|  |         <java.version>1.8</java.version> | ||
|  |         <spring-boot.version>2.3.12.RELEASE</spring-boot.version> | ||
|  |         <spring-cloud.version>Hoxton.SR12</spring-cloud.version> | ||
|  |         <spring-cloud-alibaba.version>2.2.9.RELEASE</spring-cloud-alibaba.version> | ||
|  |     </properties> | ||
|  | 
 | ||
|  |     <!-- Parent --> | ||
|  |     <parent> | ||
|  |         <groupId>org.springframework.boot</groupId> | ||
|  |         <artifactId>spring-boot-starter-parent</artifactId> | ||
|  |         <version>2.3.12.RELEASE</version> | ||
|  |         <relativePath/> | ||
|  |     </parent> | ||
|  | 
 | ||
|  |     <!-- Dependency Management --> | ||
|  |     <dependencyManagement> | ||
|  |         <dependencies> | ||
|  |             <!-- Spring Cloud Greenwich.SR6 --> | ||
|  |             <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 2.2.9.RELEASE --> | ||
|  |             <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 --> | ||
|  |     <dependencies> | ||
|  |         <!-- Spring Boot Starter --> | ||
|  |         <dependency> | ||
|  |             <groupId>org.springframework.boot</groupId> | ||
|  |             <artifactId>spring-boot-starter</artifactId> | ||
|  |         </dependency> | ||
|  | 
 | ||
|  |         <!-- Spring Web Starter --> | ||
|  |         <dependency> | ||
|  |             <groupId>org.springframework.boot</groupId> | ||
|  |             <artifactId>spring-boot-starter-web</artifactId> | ||
|  |         </dependency> | ||
|  | 
 | ||
|  |         <!-- Actuator for health checks --> | ||
|  |         <dependency> | ||
|  |             <groupId>org.springframework.boot</groupId> | ||
|  |             <artifactId>spring-boot-starter-actuator</artifactId> | ||
|  |         </dependency> | ||
|  | 
 | ||
|  |         <!-- Nacos Service Discovery --> | ||
|  |         <dependency> | ||
|  |             <groupId>com.alibaba.cloud</groupId> | ||
|  |             <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId> | ||
|  |         </dependency> | ||
|  | 
 | ||
|  |         <dependency> | ||
|  |             <groupId>org.springframework.cloud</groupId> | ||
|  |             <artifactId>spring-cloud-commons</artifactId> | ||
|  |         </dependency> | ||
|  | 
 | ||
|  |         <!-- Lombok (Optional) --> | ||
|  |         <dependency> | ||
|  |             <groupId>org.projectlombok</groupId> | ||
|  |             <artifactId>lombok</artifactId> | ||
|  |             <version>1.18.30</version> | ||
|  |         </dependency> | ||
|  | 
 | ||
|  |         <!-- OpenFeign --> | ||
|  |         <dependency> | ||
|  |             <groupId>org.springframework.cloud</groupId> | ||
|  |             <artifactId>spring-cloud-starter-openfeign</artifactId> | ||
|  |         </dependency> | ||
|  | 
 | ||
|  |         <!-- Hystrix 熔断器 --> | ||
|  |         <dependency> | ||
|  |             <groupId>org.springframework.cloud</groupId> | ||
|  |             <artifactId>spring-cloud-starter-netflix-hystrix</artifactId> | ||
|  |         </dependency> | ||
|  | 
 | ||
|  |         <!-- Spring Retry --> | ||
|  |         <dependency> | ||
|  |             <groupId>org.springframework.retry</groupId> | ||
|  |             <artifactId>spring-retry</artifactId> | ||
|  |             <version>1.3.1</version> | ||
|  |         </dependency> | ||
|  | 
 | ||
|  |         <dependency> | ||
|  |             <groupId>org.springframework.boot</groupId> | ||
|  |             <artifactId>spring-boot-starter-aop</artifactId> | ||
|  |         </dependency> | ||
|  | 
 | ||
|  |         <!-- MyBatis Starter --> | ||
|  |         <dependency> | ||
|  |             <groupId>org.mybatis.spring.boot</groupId> | ||
|  |             <artifactId>mybatis-spring-boot-starter</artifactId> | ||
|  |             <version>2.3.1</version> | ||
|  |         </dependency> | ||
|  | 
 | ||
|  |         <!-- MyBatis Plus --> | ||
|  |         <dependency> | ||
|  |             <groupId>com.baomidou</groupId> | ||
|  |             <artifactId>mybatis-plus-boot-starter</artifactId> | ||
|  |             <version>3.5.3.1</version> <!-- 支持 Java 8 的稳定版本 --> | ||
|  |         </dependency> | ||
|  | 
 | ||
|  |         <!-- MyBatis Plus Generator (可选:用于生成实体类/DAO/Service) --> | ||
|  |         <dependency> | ||
|  |             <groupId>com.baomidou</groupId> | ||
|  |             <artifactId>mybatis-plus-generator</artifactId> | ||
|  |             <version>3.5.1</version> | ||
|  |         </dependency> | ||
|  | 
 | ||
|  |         <!-- freemarker 模板引擎(配合 MP Generator 使用) --> | ||
|  |         <dependency> | ||
|  |             <groupId>org.freemarker</groupId> | ||
|  |             <artifactId>freemarker</artifactId> | ||
|  |             <version>2.3.31</version> | ||
|  |         </dependency> | ||
|  | 
 | ||
|  |         <!-- MySQL 驱动 --> | ||
|  |         <dependency> | ||
|  |             <groupId>mysql</groupId> | ||
|  |             <artifactId>mysql-connector-java</artifactId> | ||
|  |             <version>8.0.33</version> | ||
|  |         </dependency> | ||
|  | 
 | ||
|  |         <!-- JWT --> | ||
|  |         <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> | ||
|  | 
 | ||
|  |         <!-- Redis --> | ||
|  |         <dependency> | ||
|  |             <groupId>org.springframework.boot</groupId> | ||
|  |             <artifactId>spring-boot-starter-data-redis</artifactId> | ||
|  |         </dependency> | ||
|  | 
 | ||
|  |         <dependency> | ||
|  |             <groupId>org.apache.commons</groupId> | ||
|  |             <artifactId>commons-pool2</artifactId> | ||
|  |             <version>2.11.1</version> <!-- 可根据需要选择版本 --> | ||
|  |         </dependency> | ||
|  | 
 | ||
|  |         <!-- swagger2 --> | ||
|  |         <dependency> | ||
|  |             <groupId>io.springfox</groupId> | ||
|  |             <artifactId>springfox-swagger2</artifactId> | ||
|  |             <version>2.9.2</version> | ||
|  |         </dependency> | ||
|  | 
 | ||
|  |         <dependency> | ||
|  |             <groupId>io.springfox</groupId> | ||
|  |             <artifactId>springfox-swagger-ui</artifactId> | ||
|  |             <version>2.9.2</version> | ||
|  |         </dependency> | ||
|  | 
 | ||
|  |         <!-- JAXB API (Java 8 兼容) --> | ||
|  |         <dependency> | ||
|  |             <groupId>javax.xml.bind</groupId> | ||
|  |             <artifactId>jaxb-api</artifactId> | ||
|  |             <version>2.3.1</version> | ||
|  |         </dependency> | ||
|  | 
 | ||
|  |         <dependency> | ||
|  |             <groupId>io.projectreactor</groupId> | ||
|  |             <artifactId>reactor-core</artifactId> | ||
|  |             <version>3.2.2.RELEASE</version> <!-- 支持 Java 8 --> | ||
|  |         </dependency> | ||
|  | 
 | ||
|  |         <!-- MapStruct 核心库 --> | ||
|  |         <dependency> | ||
|  |             <groupId>org.mapstruct</groupId> | ||
|  |             <artifactId>mapstruct</artifactId> | ||
|  |             <version>1.5.5.Final</version> | ||
|  |         </dependency> | ||
|  | 
 | ||
|  |         <!-- MapStruct 注解处理器(用于编译期生成实现类) --> | ||
|  |         <dependency> | ||
|  |             <groupId>org.mapstruct</groupId> | ||
|  |             <artifactId>mapstruct-processor</artifactId> | ||
|  |             <version>1.5.5.Final</version> | ||
|  |             <scope>provided</scope> | ||
|  |         </dependency> | ||
|  |     </dependencies> | ||
|  | 
 | ||
|  |     <!-- Build Configuration --> | ||
|  |     <build> | ||
|  |         <finalName>sczx_car</finalName> | ||
|  |         <resources> | ||
|  |             <resource> | ||
|  |                 <directory>src/main/resources</directory> | ||
|  |                 <includes> | ||
|  |                     <include>*.yml</include> | ||
|  |                 </includes> | ||
|  |                 <filtering>true</filtering> | ||
|  |             </resource> | ||
|  |             <resource> | ||
|  |                 <directory>src/main/resources</directory> | ||
|  |                 <excludes> | ||
|  |                     <exclude>*.yml</exclude> | ||
|  |                 </excludes> | ||
|  |             </resource> | ||
|  |         </resources> | ||
|  |         <plugins> | ||
|  |             <!-- Compiler Plugin --> | ||
|  |             <plugin> | ||
|  |                 <groupId>org.apache.maven.plugins</groupId> | ||
|  |                 <artifactId>maven-compiler-plugin</artifactId> | ||
|  |                 <configuration> | ||
|  |                     <source>${java.version}</source> | ||
|  |                     <target>${java.version}</target> | ||
|  |                 </configuration> | ||
|  |             </plugin> | ||
|  | 
 | ||
|  |             <!-- Spring Boot Maven Plugin --> | ||
|  |             <plugin> | ||
|  |                 <groupId>org.springframework.boot</groupId> | ||
|  |                 <artifactId>spring-boot-maven-plugin</artifactId> | ||
|  |                 <executions> | ||
|  |                     <execution> | ||
|  |                         <goals> | ||
|  |                             <goal>repackage</goal> | ||
|  |                         </goals> | ||
|  |                     </execution> | ||
|  |                 </executions> | ||
|  |             </plugin> | ||
|  |             <plugin> | ||
|  |                 <groupId>org.apache.maven.plugins</groupId> | ||
|  |                 <artifactId>maven-source-plugin</artifactId> | ||
|  |             </plugin> | ||
|  |             <plugin> | ||
|  |                 <groupId>org.apache.maven.plugins</groupId> | ||
|  |                 <artifactId>maven-deploy-plugin</artifactId> | ||
|  |                 <configuration> | ||
|  |                     <skip>true</skip> | ||
|  |                 </configuration> | ||
|  |             </plugin> | ||
|  |         </plugins> | ||
|  |     </build> | ||
|  | 
 | ||
|  | </project> |