|
|
@@ -0,0 +1,386 @@
|
|
|
+<?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>
|
|
|
+ <parent>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-parent</artifactId>
|
|
|
+ <version>3.2.12</version>
|
|
|
+
|
|
|
+ </parent>
|
|
|
+ <groupId>com.hr</groupId>
|
|
|
+ <artifactId>InterfacePlatform</artifactId>
|
|
|
+ <version>1.0</version>
|
|
|
+
|
|
|
+ <description>接口平台</description>
|
|
|
+
|
|
|
+ <properties>
|
|
|
+ <maven.compiler.source>17</maven.compiler.source>
|
|
|
+ <maven.compiler.target>17</maven.compiler.target>
|
|
|
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
+ <xiaohh-cloud.version>xiaohh-1.0.0</xiaohh-cloud.version>
|
|
|
+ <spring-boot.version>3.2.12</spring-boot.version>
|
|
|
+ <spring-cloud.version>2023.0.4</spring-cloud.version>
|
|
|
+ <spring-cloud-alibaba.version>2023.0.1.0</spring-cloud-alibaba.version>
|
|
|
+ <mybatis-starter.version>3.0.4</mybatis-starter.version>
|
|
|
+ <!-- <spring-cloud-openfeign.version>4.2.0</spring-cloud-openfeign.version>-->
|
|
|
+ <micrometer-tracing.version>1.4.1</micrometer-tracing.version>
|
|
|
+ <java.version>21</java.version>
|
|
|
+ </properties>
|
|
|
+
|
|
|
+
|
|
|
+ <repositories>
|
|
|
+ <repository>
|
|
|
+ <id>aliyun-public</id>
|
|
|
+ <url>https://maven.aliyun.com/repository/public</url>
|
|
|
+ <releases><enabled>true</enabled></releases>
|
|
|
+ <snapshots><enabled>false</enabled></snapshots>
|
|
|
+ </repository>
|
|
|
+ </repositories>
|
|
|
+
|
|
|
+ <pluginRepositories>
|
|
|
+ <pluginRepository>
|
|
|
+ <id>aliyun-public</id>
|
|
|
+ <url>https://maven.aliyun.com/repository/public</url>
|
|
|
+ </pluginRepository>
|
|
|
+ </pluginRepositories>
|
|
|
+
|
|
|
+
|
|
|
+ <dependencies>
|
|
|
+
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.junit.jupiter</groupId>
|
|
|
+ <artifactId>junit-jupiter</artifactId>
|
|
|
+ <version>5.9.3</version>
|
|
|
+ <scope>test</scope>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-test</artifactId>
|
|
|
+ <scope>test</scope>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.google.protobuf</groupId>
|
|
|
+ <artifactId>protobuf-java</artifactId>
|
|
|
+ <version>2.5.0</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.aliyun.openservices</groupId>
|
|
|
+ <artifactId>aliyun-log-logback-appender</artifactId>
|
|
|
+ <version>0.1.15</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.projectlombok</groupId>
|
|
|
+ <artifactId>lombok</artifactId>
|
|
|
+ <version>1.18.34</version>
|
|
|
+ <scope>provided</scope>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.alibaba</groupId>
|
|
|
+ <artifactId>fastjson</artifactId>
|
|
|
+ <version>2.0.57</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-data-jpa</artifactId>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.basedevelop</groupId>
|
|
|
+ <artifactId>basedevelop</artifactId>
|
|
|
+ <version>1.0</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.mybatis.spring.boot</groupId>
|
|
|
+ <artifactId>mybatis-spring-boot-starter</artifactId>
|
|
|
+ <version>3.0.4</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <!-- 链路追踪依赖 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>io.micrometer</groupId>
|
|
|
+ <artifactId>micrometer-tracing-bom</artifactId>
|
|
|
+ <version>1.4.1</version>
|
|
|
+ <type>pom</type>
|
|
|
+ <scope>import</scope>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <!-- Seata 分布式事务 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.alibaba.cloud</groupId>
|
|
|
+ <artifactId>spring-cloud-starter-alibaba-seata</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <!-- SpringWeb 依赖 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-web</artifactId>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- Spring 健康检查依赖 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-actuator</artifactId>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- Bootstrap 配置文件支持 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.cloud</groupId>
|
|
|
+ <artifactId>spring-cloud-starter-bootstrap</artifactId>
|
|
|
+ <version>4.1.5</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- Nacos 注册中心 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.alibaba.cloud</groupId>
|
|
|
+ <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
|
|
+ <version>2023.0.1.0</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- Nacos 注册中心 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.alibaba.cloud</groupId>
|
|
|
+ <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
|
|
+ <version>2023.0.1.0</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- Seata 分布式事务 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.alibaba.cloud</groupId>
|
|
|
+ <artifactId>spring-cloud-starter-alibaba-seata</artifactId>
|
|
|
+ <version>2023.0.1.0</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- SpringCloud 负载均衡启动器 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.cloud</groupId>
|
|
|
+ <artifactId>spring-cloud-starter-loadbalancer</artifactId>
|
|
|
+ <version>4.1.5</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- MySQL 数据库驱动 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.mysql</groupId>
|
|
|
+ <artifactId>mysql-connector-j</artifactId>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+ <!-- MyBatis 整合启动器 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.mybatis.spring.boot</groupId>
|
|
|
+ <artifactId>mybatis-spring-boot-starter</artifactId>
|
|
|
+ <version>3.0.4</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <!-- Micrometer 整合 Brave 追踪器 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>io.micrometer</groupId>
|
|
|
+ <artifactId>micrometer-tracing-bridge-brave</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <!-- Micrometer 指标追踪 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>io.micrometer</groupId>
|
|
|
+ <artifactId>micrometer-tracing</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <!-- Micrometer 观察者 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>io.micrometer</groupId>
|
|
|
+ <artifactId>micrometer-observation</artifactId>
|
|
|
+ </dependency>
|
|
|
+ <!-- 整合 Openfeign -->
|
|
|
+ <!-- OpenFeign 依赖 -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework.cloud</groupId>
|
|
|
+ <artifactId>spring-cloud-starter-openfeign</artifactId>
|
|
|
+ <version>4.1.4</version>
|
|
|
+ </dependency>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ </dependencies>
|
|
|
+
|
|
|
+ <build>
|
|
|
+ <finalName>${project.artifactId}</finalName>
|
|
|
+ <plugins>
|
|
|
+
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-compiler-plugin</artifactId>
|
|
|
+ <version>3.8.1</version>
|
|
|
+ <configuration>
|
|
|
+ <source>21</source>
|
|
|
+ <target>21</target>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.codehaus.mojo</groupId>
|
|
|
+ <artifactId>exec-maven-plugin</artifactId>
|
|
|
+ <version>3.0.0</version>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>prepare-package</id>
|
|
|
+ <phase>prepare-package</phase>
|
|
|
+ <goals>
|
|
|
+ <goal>java</goal>
|
|
|
+ </goals>
|
|
|
+ <configuration>
|
|
|
+ <mainClass>com.yy.basedevelop.common.util.Codepackage</mainClass>
|
|
|
+ <arguments>
|
|
|
+
|
|
|
+ </arguments>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+
|
|
|
+ </plugins>
|
|
|
+
|
|
|
+
|
|
|
+ </build>
|
|
|
+
|
|
|
+
|
|
|
+ <profiles>
|
|
|
+ <profile>
|
|
|
+ <id>deploy</id>
|
|
|
+
|
|
|
+ <build>
|
|
|
+ <plugins>
|
|
|
+ <plugin>
|
|
|
+ <artifactId>maven-jar-plugin</artifactId>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>client</id>
|
|
|
+ <goals><goal>jar</goal></goals>
|
|
|
+ <phase>package</phase>
|
|
|
+ <configuration>
|
|
|
+ <classifier>client</classifier>
|
|
|
+ <includes>
|
|
|
+ <include>**/fegin/**</include>
|
|
|
+ </includes>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ </plugins>
|
|
|
+
|
|
|
+ </build>
|
|
|
+ </profile>
|
|
|
+ <profile>
|
|
|
+ <id>dev</id>
|
|
|
+ <build>
|
|
|
+ <finalName>${project.artifactId}-dev</finalName>
|
|
|
+ <plugins>
|
|
|
+ <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-compiler-plugin</artifactId>
|
|
|
+ <version>3.8.1</version> <!-- 使用最新版本 -->
|
|
|
+ <configuration>
|
|
|
+ <source>21</source> <!-- 设置源代码的 JDK 版本 -->
|
|
|
+ <target>21</target> <!-- 设置目标字节码的 JDK 版本 -->
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+ </plugins>
|
|
|
+ </build>
|
|
|
+ </profile>
|
|
|
+ <profile>
|
|
|
+ <id>test</id>
|
|
|
+ <build>
|
|
|
+ <finalName>${project.artifactId}-test</finalName>
|
|
|
+ <plugins>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-deploy-plugin</artifactId>
|
|
|
+ <version>3.1.2</version>
|
|
|
+ <configuration>
|
|
|
+ <skip>false</skip>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <goals>
|
|
|
+ <goal>repackage</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ </plugins>
|
|
|
+ </build>
|
|
|
+ </profile>
|
|
|
+ <profile>
|
|
|
+ <id>prod</id>
|
|
|
+ <build>
|
|
|
+ <finalName>${project.artifactId}-prod</finalName>
|
|
|
+ <plugins>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
+ <version>3.2.12</version>
|
|
|
+ <configuration>
|
|
|
+ <mainClass>com.hr.InterfacePlatformApplication</mainClass>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-deploy-plugin</artifactId>
|
|
|
+ <version>3.1.2</version>
|
|
|
+ <configuration>
|
|
|
+ <skip>false</skip>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+
|
|
|
+ </plugins>
|
|
|
+ </build>
|
|
|
+ </profile>
|
|
|
+ </profiles>
|
|
|
+
|
|
|
+
|
|
|
+ <distributionManagement>
|
|
|
+ <repository>
|
|
|
+ <id>releases</id>
|
|
|
+ <url>http://192.168.1.168:8081/repository/maven-releases/</url>
|
|
|
+ </repository>
|
|
|
+ <snapshotRepository>
|
|
|
+ <id>snapshots</id>
|
|
|
+ <url>http://192.168.1.168:8081/repository/maven-snapshots/</url>
|
|
|
+ </snapshotRepository>
|
|
|
+ </distributionManagement>
|
|
|
+
|
|
|
+
|
|
|
+</project>
|