pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>org.springframework.boot</groupId>
  8. <artifactId>spring-boot-starter-parent</artifactId>
  9. <version>3.2.12</version>
  10. </parent>
  11. <groupId>com.hr</groupId>
  12. <artifactId>InterfacePlatform</artifactId>
  13. <version>1.0</version>
  14. <description>接口平台</description>
  15. <properties>
  16. <maven.compiler.source>17</maven.compiler.source>
  17. <maven.compiler.target>17</maven.compiler.target>
  18. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  19. <xiaohh-cloud.version>xiaohh-1.0.0</xiaohh-cloud.version>
  20. <spring-boot.version>3.2.12</spring-boot.version>
  21. <spring-cloud.version>2023.0.4</spring-cloud.version>
  22. <spring-cloud-alibaba.version>2023.0.1.0</spring-cloud-alibaba.version>
  23. <mybatis-starter.version>3.0.4</mybatis-starter.version>
  24. <!-- <spring-cloud-openfeign.version>4.2.0</spring-cloud-openfeign.version>-->
  25. <micrometer-tracing.version>1.4.1</micrometer-tracing.version>
  26. <java.version>21</java.version>
  27. </properties>
  28. <repositories>
  29. <repository>
  30. <id>aliyun-public</id>
  31. <url>https://maven.aliyun.com/repository/public</url>
  32. <releases><enabled>true</enabled></releases>
  33. <snapshots><enabled>false</enabled></snapshots>
  34. </repository>
  35. <repository>
  36. <id>releases</id>
  37. <url>https://nexus.hrsk.com/repository/maven-releases/</url>
  38. <releases><enabled>true</enabled></releases>
  39. <snapshots><enabled>false</enabled></snapshots>
  40. </repository>
  41. <repository>
  42. <id>snapshots</id>
  43. <url>https://nexus.hrsk.com/repository/maven-snapshots/</url>
  44. <releases><enabled>false</enabled></releases>
  45. <snapshots><enabled>true</enabled></snapshots>
  46. </repository>
  47. </repositories>
  48. <pluginRepositories>
  49. <pluginRepository>
  50. <id>aliyun-public</id>
  51. <url>https://maven.aliyun.com/repository/public</url>
  52. </pluginRepository>
  53. </pluginRepositories>
  54. <dependencies>
  55. <dependency>
  56. <groupId>org.junit.jupiter</groupId>
  57. <artifactId>junit-jupiter</artifactId>
  58. <version>5.9.3</version>
  59. <scope>test</scope>
  60. </dependency>
  61. <dependency>
  62. <groupId>org.springframework.boot</groupId>
  63. <artifactId>spring-boot-starter-test</artifactId>
  64. <scope>test</scope>
  65. </dependency>
  66. <dependency>
  67. <groupId>com.google.protobuf</groupId>
  68. <artifactId>protobuf-java</artifactId>
  69. <version>2.5.0</version>
  70. </dependency>
  71. <dependency>
  72. <groupId>com.aliyun.openservices</groupId>
  73. <artifactId>aliyun-log-logback-appender</artifactId>
  74. <version>0.1.15</version>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.projectlombok</groupId>
  78. <artifactId>lombok</artifactId>
  79. <version>1.18.34</version>
  80. <scope>provided</scope>
  81. </dependency>
  82. <dependency>
  83. <groupId>com.alibaba</groupId>
  84. <artifactId>fastjson</artifactId>
  85. <version>2.0.57</version>
  86. </dependency>
  87. <dependency>
  88. <groupId>org.springframework.boot</groupId>
  89. <artifactId>spring-boot-starter-data-jpa</artifactId>
  90. </dependency>
  91. <dependency>
  92. <groupId>com.basedevelop</groupId>
  93. <artifactId>basedevelop</artifactId>
  94. <version>1.0-SNAPSHOT</version>
  95. </dependency>
  96. <dependency>
  97. <groupId>org.mybatis.spring.boot</groupId>
  98. <artifactId>mybatis-spring-boot-starter</artifactId>
  99. <version>3.0.4</version>
  100. </dependency>
  101. <!-- 链路追踪依赖 -->
  102. <dependency>
  103. <groupId>io.micrometer</groupId>
  104. <artifactId>micrometer-tracing-bom</artifactId>
  105. <version>1.4.1</version>
  106. <type>pom</type>
  107. <scope>import</scope>
  108. </dependency>
  109. <!-- Seata 分布式事务 -->
  110. <dependency>
  111. <groupId>com.alibaba.cloud</groupId>
  112. <artifactId>spring-cloud-starter-alibaba-seata</artifactId>
  113. </dependency>
  114. <!-- SpringWeb 依赖 -->
  115. <dependency>
  116. <groupId>org.springframework.boot</groupId>
  117. <artifactId>spring-boot-starter-web</artifactId>
  118. </dependency>
  119. <!-- Spring 健康检查依赖 -->
  120. <dependency>
  121. <groupId>org.springframework.boot</groupId>
  122. <artifactId>spring-boot-starter-actuator</artifactId>
  123. </dependency>
  124. <!-- Bootstrap 配置文件支持 -->
  125. <dependency>
  126. <groupId>org.springframework.cloud</groupId>
  127. <artifactId>spring-cloud-starter-bootstrap</artifactId>
  128. <version>4.1.5</version>
  129. </dependency>
  130. <!-- Nacos 注册中心 -->
  131. <dependency>
  132. <groupId>com.alibaba.cloud</groupId>
  133. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  134. <version>2023.0.1.0</version>
  135. </dependency>
  136. <!-- Nacos 注册中心 -->
  137. <dependency>
  138. <groupId>com.alibaba.cloud</groupId>
  139. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  140. <version>2023.0.1.0</version>
  141. </dependency>
  142. <!-- Seata 分布式事务 -->
  143. <dependency>
  144. <groupId>com.alibaba.cloud</groupId>
  145. <artifactId>spring-cloud-starter-alibaba-seata</artifactId>
  146. <version>2023.0.1.0</version>
  147. </dependency>
  148. <!-- SpringCloud 负载均衡启动器 -->
  149. <dependency>
  150. <groupId>org.springframework.cloud</groupId>
  151. <artifactId>spring-cloud-starter-loadbalancer</artifactId>
  152. <version>4.1.5</version>
  153. </dependency>
  154. <!-- MySQL 数据库驱动 -->
  155. <dependency>
  156. <groupId>com.mysql</groupId>
  157. <artifactId>mysql-connector-j</artifactId>
  158. </dependency>
  159. <!-- MyBatis 整合启动器 -->
  160. <dependency>
  161. <groupId>org.mybatis.spring.boot</groupId>
  162. <artifactId>mybatis-spring-boot-starter</artifactId>
  163. <version>3.0.4</version>
  164. </dependency>
  165. <!-- Micrometer 整合 Brave 追踪器 -->
  166. <dependency>
  167. <groupId>io.micrometer</groupId>
  168. <artifactId>micrometer-tracing-bridge-brave</artifactId>
  169. </dependency>
  170. <!-- Micrometer 指标追踪 -->
  171. <dependency>
  172. <groupId>io.micrometer</groupId>
  173. <artifactId>micrometer-tracing</artifactId>
  174. </dependency>
  175. <!-- Micrometer 观察者 -->
  176. <dependency>
  177. <groupId>io.micrometer</groupId>
  178. <artifactId>micrometer-observation</artifactId>
  179. </dependency>
  180. <!-- 整合 Openfeign -->
  181. <!-- OpenFeign 依赖 -->
  182. <dependency>
  183. <groupId>org.springframework.cloud</groupId>
  184. <artifactId>spring-cloud-starter-openfeign</artifactId>
  185. <version>4.1.4</version>
  186. </dependency>
  187. </dependencies>
  188. <build>
  189. <finalName>${project.artifactId}</finalName>
  190. <plugins>
  191. <plugin>
  192. <groupId>org.apache.maven.plugins</groupId>
  193. <artifactId>maven-compiler-plugin</artifactId>
  194. <version>3.8.1</version>
  195. <configuration>
  196. <source>21</source>
  197. <target>21</target>
  198. </configuration>
  199. </plugin>
  200. <plugin>
  201. <groupId>org.codehaus.mojo</groupId>
  202. <artifactId>exec-maven-plugin</artifactId>
  203. <version>3.0.0</version>
  204. <executions>
  205. <execution>
  206. <id>prepare-package</id>
  207. <phase>prepare-package</phase>
  208. <goals>
  209. <goal>java</goal>
  210. </goals>
  211. <configuration>
  212. <mainClass>com.yy.basedevelop.common.util.Codepackage</mainClass>
  213. <arguments>
  214. </arguments>
  215. </configuration>
  216. </execution>
  217. </executions>
  218. </plugin>
  219. </plugins>
  220. </build>
  221. <profiles>
  222. <profile>
  223. <id>deploy</id>
  224. <build>
  225. <plugins>
  226. <plugin>
  227. <artifactId>maven-jar-plugin</artifactId>
  228. <executions>
  229. <execution>
  230. <id>client</id>
  231. <goals><goal>jar</goal></goals>
  232. <phase>package</phase>
  233. <configuration>
  234. <classifier>client</classifier>
  235. <includes>
  236. <include>**/fegin/**</include>
  237. </includes>
  238. </configuration>
  239. </execution>
  240. </executions>
  241. </plugin>
  242. </plugins>
  243. </build>
  244. </profile>
  245. <profile>
  246. <id>dev</id>
  247. <build>
  248. <finalName>${project.artifactId}-dev</finalName>
  249. <plugins>
  250. <plugin>
  251. <groupId>org.springframework.boot</groupId>
  252. <artifactId>spring-boot-maven-plugin</artifactId>
  253. <executions>
  254. <execution>
  255. <goals>
  256. <goal>repackage</goal>
  257. </goals>
  258. </execution>
  259. </executions>
  260. </plugin>
  261. <plugin>
  262. <groupId>org.apache.maven.plugins</groupId>
  263. <artifactId>maven-compiler-plugin</artifactId>
  264. <version>3.8.1</version> <!-- 使用最新版本 -->
  265. <configuration>
  266. <source>21</source> <!-- 设置源代码的 JDK 版本 -->
  267. <target>21</target> <!-- 设置目标字节码的 JDK 版本 -->
  268. </configuration>
  269. </plugin>
  270. </plugins>
  271. </build>
  272. </profile>
  273. <profile>
  274. <id>test</id>
  275. <build>
  276. <finalName>${project.artifactId}-test</finalName>
  277. <plugins>
  278. <plugin>
  279. <groupId>org.apache.maven.plugins</groupId>
  280. <artifactId>maven-deploy-plugin</artifactId>
  281. <version>3.1.2</version>
  282. <configuration>
  283. <skip>false</skip>
  284. </configuration>
  285. </plugin>
  286. <plugin>
  287. <groupId>org.springframework.boot</groupId>
  288. <artifactId>spring-boot-maven-plugin</artifactId>
  289. <executions>
  290. <execution>
  291. <goals>
  292. <goal>repackage</goal>
  293. </goals>
  294. </execution>
  295. </executions>
  296. </plugin>
  297. </plugins>
  298. </build>
  299. </profile>
  300. <profile>
  301. <id>prod</id>
  302. <build>
  303. <finalName>${project.artifactId}-prod</finalName>
  304. <plugins>
  305. <plugin>
  306. <groupId>org.springframework.boot</groupId>
  307. <artifactId>spring-boot-maven-plugin</artifactId>
  308. <version>3.2.12</version>
  309. <configuration>
  310. <mainClass>com.hr.InterfacePlatformApplication</mainClass>
  311. </configuration>
  312. </plugin>
  313. <plugin>
  314. <groupId>org.apache.maven.plugins</groupId>
  315. <artifactId>maven-deploy-plugin</artifactId>
  316. <version>3.1.2</version>
  317. <configuration>
  318. <skip>false</skip>
  319. </configuration>
  320. </plugin>
  321. </plugins>
  322. </build>
  323. </profile>
  324. </profiles>
  325. <distributionManagement>
  326. <repository>
  327. <id>releases</id>
  328. <url>https://nexus.hrsk.com:8081/repository/maven-releases/</url>
  329. </repository>
  330. <snapshotRepository>
  331. <id>snapshots</id>
  332. <url>https://nexus.hrsk.com:8081/repository/maven-snapshots/</url>
  333. </snapshotRepository>
  334. </distributionManagement>
  335. </project>