pom.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525
  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>com.fasterxml.jackson.module</groupId>
  57. <artifactId>jackson-module-jaxb-annotations</artifactId>
  58. <version>2.15.2</version>
  59. </dependency>
  60. <dependency>
  61. <groupId>org.junit.jupiter</groupId>
  62. <artifactId>junit-jupiter</artifactId>
  63. <version>5.9.3</version>
  64. <scope>test</scope>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.springframework.boot</groupId>
  68. <artifactId>spring-boot-starter-test</artifactId>
  69. <scope>test</scope>
  70. </dependency>
  71. <dependency>
  72. <groupId>com.alibaba.fastjson2</groupId>
  73. <artifactId>fastjson2</artifactId>
  74. <version>2.0.57</version>
  75. </dependency>
  76. <dependency>
  77. <groupId>com.google.protobuf</groupId>
  78. <artifactId>protobuf-java</artifactId>
  79. <version>2.5.0</version>
  80. </dependency>
  81. <dependency>
  82. <groupId>com.aliyun.openservices</groupId>
  83. <artifactId>aliyun-log-logback-appender</artifactId>
  84. <version>0.1.15</version>
  85. </dependency>
  86. <dependency>
  87. <groupId>org.projectlombok</groupId>
  88. <artifactId>lombok</artifactId>
  89. <version>1.18.34</version>
  90. <scope>provided</scope>
  91. </dependency>
  92. <dependency>
  93. <groupId>com.alibaba</groupId>
  94. <artifactId>fastjson</artifactId>
  95. <version>2.0.57</version>
  96. </dependency>
  97. <dependency>
  98. <groupId>com.basedevelop</groupId>
  99. <artifactId>basedevelop</artifactId>
  100. <version>1.0-SNAPSHOT</version>
  101. </dependency>
  102. <dependency>
  103. <groupId>org.springframework.boot</groupId>
  104. <artifactId>spring-boot-starter-data-jpa</artifactId>
  105. </dependency>
  106. <dependency>
  107. <groupId>org.mybatis.spring.boot</groupId>
  108. <artifactId>mybatis-spring-boot-starter</artifactId>
  109. <version>3.0.4</version>
  110. </dependency>
  111. <!-- E签宝 -->
  112. <dependency>
  113. <groupId>esign-cn</groupId>
  114. <artifactId>paas-sdk</artifactId>
  115. <version>3.0.20</version>
  116. </dependency>
  117. <dependency>
  118. <groupId>org.springframework.boot</groupId>
  119. <artifactId>spring-boot-starter-freemarker</artifactId>
  120. <version>3.1.5</version>
  121. </dependency>
  122. <dependency>
  123. <groupId>com.itextpdf</groupId>
  124. <artifactId>kernel</artifactId>
  125. <version>8.0.4</version>
  126. </dependency>
  127. <dependency>
  128. <groupId>com.itextpdf</groupId>
  129. <artifactId>io</artifactId>
  130. <version>8.0.4</version>
  131. </dependency>
  132. <dependency>
  133. <groupId>com.itextpdf</groupId>
  134. <artifactId>layout</artifactId>
  135. <version>8.0.4</version>
  136. </dependency>
  137. <dependency>
  138. <groupId>com.itextpdf</groupId>
  139. <artifactId>pdfa</artifactId>
  140. <version>8.0.4</version>
  141. </dependency>
  142. <dependency>
  143. <groupId>org.zefer</groupId>
  144. <artifactId>pd4ml</artifactId>
  145. <version>3.7.0</version>
  146. </dependency>
  147. <dependency>
  148. <groupId>org.zefer</groupId>
  149. <artifactId>css</artifactId>
  150. <version>2.0.0</version>
  151. </dependency>
  152. <!-- 链路追踪依赖 -->
  153. <dependency>
  154. <groupId>io.micrometer</groupId>
  155. <artifactId>micrometer-tracing-bom</artifactId>
  156. <version>1.4.1</version>
  157. <type>pom</type>
  158. <scope>import</scope>
  159. </dependency>
  160. <!-- Seata 分布式事务 -->
  161. <dependency>
  162. <groupId>com.alibaba.cloud</groupId>
  163. <artifactId>spring-cloud-starter-alibaba-seata</artifactId>
  164. </dependency>
  165. <!-- SpringWeb 依赖 -->
  166. <dependency>
  167. <groupId>org.springframework.boot</groupId>
  168. <artifactId>spring-boot-starter-web</artifactId>
  169. </dependency>
  170. <!-- Spring 健康检查依赖 -->
  171. <dependency>
  172. <groupId>org.springframework.boot</groupId>
  173. <artifactId>spring-boot-starter-actuator</artifactId>
  174. </dependency>
  175. <!-- Bootstrap 配置文件支持 -->
  176. <dependency>
  177. <groupId>org.springframework.cloud</groupId>
  178. <artifactId>spring-cloud-starter-bootstrap</artifactId>
  179. <version>4.1.5</version>
  180. </dependency>
  181. <!-- Nacos 注册中心 -->
  182. <dependency>
  183. <groupId>com.alibaba.cloud</groupId>
  184. <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
  185. <version>2023.0.1.0</version>
  186. </dependency>
  187. <!-- Nacos 注册中心 -->
  188. <dependency>
  189. <groupId>com.alibaba.cloud</groupId>
  190. <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
  191. <version>2023.0.1.0</version>
  192. </dependency>
  193. <!-- Seata 分布式事务 -->
  194. <dependency>
  195. <groupId>com.alibaba.cloud</groupId>
  196. <artifactId>spring-cloud-starter-alibaba-seata</artifactId>
  197. <version>2023.0.1.0</version>
  198. </dependency>
  199. <!-- SpringCloud 负载均衡启动器 -->
  200. <dependency>
  201. <groupId>org.springframework.cloud</groupId>
  202. <artifactId>spring-cloud-starter-loadbalancer</artifactId>
  203. <version>4.1.5</version>
  204. </dependency>
  205. <!-- MySQL 数据库驱动 -->
  206. <dependency>
  207. <groupId>com.mysql</groupId>
  208. <artifactId>mysql-connector-j</artifactId>
  209. </dependency>
  210. <!-- MyBatis 整合启动器 -->
  211. <dependency>
  212. <groupId>org.mybatis.spring.boot</groupId>
  213. <artifactId>mybatis-spring-boot-starter</artifactId>
  214. <version>3.0.4</version>
  215. </dependency>
  216. <!-- Micrometer 整合 Brave 追踪器 -->
  217. <dependency>
  218. <groupId>io.micrometer</groupId>
  219. <artifactId>micrometer-tracing-bridge-brave</artifactId>
  220. </dependency>
  221. <!-- Micrometer 指标追踪 -->
  222. <dependency>
  223. <groupId>io.micrometer</groupId>
  224. <artifactId>micrometer-tracing</artifactId>
  225. </dependency>
  226. <!-- Micrometer 观察者 -->
  227. <dependency>
  228. <groupId>io.micrometer</groupId>
  229. <artifactId>micrometer-observation</artifactId>
  230. </dependency>
  231. <!-- 整合 Openfeign -->
  232. <!-- OpenFeign 依赖 -->
  233. <dependency>
  234. <groupId>org.springframework.cloud</groupId>
  235. <artifactId>spring-cloud-starter-openfeign</artifactId>
  236. <version>4.1.4</version>
  237. </dependency>
  238. <!-- E签宝 start -->
  239. <dependency>
  240. <groupId>org.apache.httpcomponents</groupId>
  241. <artifactId>httpmime</artifactId>
  242. <version>4.5.14</version>
  243. </dependency>
  244. <dependency>
  245. <groupId>org.apache.httpcomponents</groupId>
  246. <artifactId>httpclient</artifactId>
  247. <version>4.5.14</version>
  248. </dependency>
  249. <dependency>
  250. <groupId>com.fasterxml.jackson.module</groupId>
  251. <artifactId>jackson-module-jaxb-annotations</artifactId>
  252. <version>2.15.2</version>
  253. </dependency>
  254. <dependency>
  255. <groupId>org.springframework.boot</groupId>
  256. <artifactId>spring-boot-starter-freemarker</artifactId>
  257. </dependency>
  258. <dependency>
  259. <groupId>esign-cn</groupId>
  260. <artifactId>paas-sdk</artifactId>
  261. <version>3.0.20</version>
  262. </dependency>
  263. <dependency>
  264. <groupId>com.itextpdf</groupId>
  265. <artifactId>kernel</artifactId>
  266. <version>8.0.4</version>
  267. </dependency>
  268. <dependency>
  269. <groupId>com.itextpdf</groupId>
  270. <artifactId>io</artifactId>
  271. <version>8.0.4</version>
  272. </dependency>
  273. <dependency>
  274. <groupId>com.itextpdf</groupId>
  275. <artifactId>layout</artifactId>
  276. <version>8.0.4</version>
  277. </dependency>
  278. <dependency>
  279. <groupId>com.itextpdf</groupId>
  280. <artifactId>pdfa</artifactId>
  281. <version>8.0.4</version>
  282. </dependency>
  283. <dependency>
  284. <groupId>org.zefer</groupId>
  285. <artifactId>pd4ml</artifactId>
  286. <version>3.7.0</version>
  287. </dependency>
  288. <dependency>
  289. <groupId>org.zefer</groupId>
  290. <artifactId>css</artifactId>
  291. <version>2.0.0</version>
  292. </dependency>
  293. <!-- E签宝 end -->
  294. <dependency>
  295. <groupId>org.codehaus.janino</groupId>
  296. <artifactId>janino</artifactId>
  297. <version>3.1.10</version>
  298. </dependency>
  299. </dependencies>
  300. <build>
  301. <finalName>${project.artifactId}</finalName>
  302. <plugins>
  303. <plugin>
  304. <groupId>org.apache.maven.plugins</groupId>
  305. <artifactId>maven-compiler-plugin</artifactId>
  306. <version>3.8.1</version>
  307. <configuration>
  308. <source>21</source>
  309. <target>21</target>
  310. </configuration>
  311. </plugin>
  312. <!-- Spring Boot 插件(全局生效) -->
  313. <plugin>
  314. <groupId>org.springframework.boot</groupId>
  315. <artifactId>spring-boot-maven-plugin</artifactId>
  316. <version>3.2.12</version>
  317. </plugin>
  318. <plugin>
  319. <groupId>org.codehaus.mojo</groupId>
  320. <artifactId>exec-maven-plugin</artifactId>
  321. <version>3.0.0</version>
  322. <executions>
  323. <execution>
  324. <id>prepare-package</id>
  325. <phase>prepare-package</phase>
  326. <goals>
  327. <goal>java</goal>
  328. </goals>
  329. <configuration>
  330. <mainClass>com.yy.basedevelop.common.util.Codepackage</mainClass>
  331. <arguments>
  332. </arguments>
  333. </configuration>
  334. </execution>
  335. </executions>
  336. </plugin>
  337. </plugins>
  338. </build>
  339. <profiles>
  340. <profile>
  341. <id>deploy</id>
  342. <build>
  343. <finalName>${project.artifactId}</finalName>
  344. <plugins>
  345. <plugin>
  346. <groupId>org.springframework.boot</groupId>
  347. <artifactId>spring-boot-maven-plugin</artifactId>
  348. <executions>
  349. <execution>
  350. <goals>
  351. <goal>repackage</goal>
  352. </goals>
  353. </execution>
  354. </executions>
  355. </plugin>
  356. </plugins>
  357. </build>
  358. </profile>
  359. <profile>
  360. <id>dev</id>
  361. <build>
  362. <finalName>${project.artifactId}-dev</finalName>
  363. <plugins>
  364. <plugin>
  365. <groupId>org.springframework.boot</groupId>
  366. <artifactId>spring-boot-maven-plugin</artifactId>
  367. <executions>
  368. <execution>
  369. <goals>
  370. <goal>repackage</goal>
  371. </goals>
  372. </execution>
  373. </executions>
  374. </plugin>
  375. <plugin>
  376. <groupId>org.apache.maven.plugins</groupId>
  377. <artifactId>maven-compiler-plugin</artifactId>
  378. <version>3.8.1</version> <!-- 使用最新版本 -->
  379. <configuration>
  380. <source>21</source> <!-- 设置源代码的 JDK 版本 -->
  381. <target>21</target> <!-- 设置目标字节码的 JDK 版本 -->
  382. </configuration>
  383. </plugin>
  384. </plugins>
  385. </build>
  386. </profile>
  387. <profile>
  388. <id>test</id>
  389. <build>
  390. <finalName>${project.artifactId}-test</finalName>
  391. <plugins>
  392. <plugin>
  393. <groupId>org.apache.maven.plugins</groupId>
  394. <artifactId>maven-deploy-plugin</artifactId>
  395. <version>3.1.2</version>
  396. <configuration>
  397. <skip>false</skip>
  398. </configuration>
  399. </plugin>
  400. <plugin>
  401. <groupId>org.springframework.boot</groupId>
  402. <artifactId>spring-boot-maven-plugin</artifactId>
  403. <executions>
  404. <execution>
  405. <goals>
  406. <goal>repackage</goal>
  407. </goals>
  408. </execution>
  409. </executions>
  410. </plugin>
  411. </plugins>
  412. </build>
  413. </profile>
  414. <profile>
  415. <id>prod</id>
  416. <build>
  417. <finalName>${project.artifactId}-prod</finalName>
  418. <plugins>
  419. <plugin>
  420. <groupId>org.springframework.boot</groupId>
  421. <artifactId>spring-boot-maven-plugin</artifactId>
  422. <version>3.2.12</version>
  423. <configuration>
  424. <mainClass>com.hr.InterfacePlatformApplication</mainClass>
  425. </configuration>
  426. </plugin>
  427. <plugin>
  428. <groupId>org.apache.maven.plugins</groupId>
  429. <artifactId>maven-deploy-plugin</artifactId>
  430. <version>3.1.2</version>
  431. <configuration>
  432. <skip>false</skip>
  433. </configuration>
  434. </plugin>
  435. </plugins>
  436. </build>
  437. </profile>
  438. </profiles>
  439. <distributionManagement>
  440. <repository>
  441. <id>releases</id>
  442. <url>https://nexus.hrsk.com:8081/repository/maven-releases/</url>
  443. </repository>
  444. <snapshotRepository>
  445. <id>snapshots</id>
  446. <url>https://nexus.hrsk.com:8081/repository/maven-snapshots/</url>
  447. </snapshotRepository>
  448. </distributionManagement>
  449. </project>