pom.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460
  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. <!-- E签宝 start -->
  188. <dependency>
  189. <groupId>org.apache.httpcomponents</groupId>
  190. <artifactId>httpmime</artifactId>
  191. <version>4.5.14</version>
  192. </dependency>
  193. <dependency>
  194. <groupId>org.apache.httpcomponents</groupId>
  195. <artifactId>httpclient</artifactId>
  196. <version>4.5.14</version>
  197. </dependency>
  198. <dependency>
  199. <groupId>com.fasterxml.jackson.module</groupId>
  200. <artifactId>jackson-module-jaxb-annotations</artifactId>
  201. <version>2.15.2</version>
  202. </dependency>
  203. <dependency>
  204. <groupId>org.springframework.boot</groupId>
  205. <artifactId>spring-boot-starter-freemarker</artifactId>
  206. </dependency>
  207. <dependency>
  208. <groupId>esign-cn</groupId>
  209. <artifactId>paas-sdk</artifactId>
  210. <version>3.0.20</version>
  211. </dependency>
  212. <dependency>
  213. <groupId>com.itextpdf</groupId>
  214. <artifactId>kernel</artifactId>
  215. <version>8.0.4</version>
  216. </dependency>
  217. <dependency>
  218. <groupId>com.itextpdf</groupId>
  219. <artifactId>io</artifactId>
  220. <version>8.0.4</version>
  221. </dependency>
  222. <dependency>
  223. <groupId>com.itextpdf</groupId>
  224. <artifactId>layout</artifactId>
  225. <version>8.0.4</version>
  226. </dependency>
  227. <dependency>
  228. <groupId>com.itextpdf</groupId>
  229. <artifactId>pdfa</artifactId>
  230. <version>8.0.4</version>
  231. </dependency>
  232. <dependency>
  233. <groupId>org.zefer</groupId>
  234. <artifactId>pd4ml</artifactId>
  235. <version>3.7.0</version>
  236. </dependency>
  237. <dependency>
  238. <groupId>org.zefer</groupId>
  239. <artifactId>css</artifactId>
  240. <version>2.0.0</version>
  241. </dependency>
  242. <!-- E签宝 end -->
  243. </dependencies>
  244. <build>
  245. <finalName>${project.artifactId}</finalName>
  246. <plugins>
  247. <plugin>
  248. <groupId>org.apache.maven.plugins</groupId>
  249. <artifactId>maven-compiler-plugin</artifactId>
  250. <version>3.8.1</version>
  251. <configuration>
  252. <source>21</source>
  253. <target>21</target>
  254. </configuration>
  255. </plugin>
  256. <plugin>
  257. <groupId>org.codehaus.mojo</groupId>
  258. <artifactId>exec-maven-plugin</artifactId>
  259. <version>3.0.0</version>
  260. <executions>
  261. <execution>
  262. <id>prepare-package</id>
  263. <phase>prepare-package</phase>
  264. <goals>
  265. <goal>java</goal>
  266. </goals>
  267. <configuration>
  268. <mainClass>com.yy.basedevelop.common.util.Codepackage</mainClass>
  269. <arguments>
  270. </arguments>
  271. </configuration>
  272. </execution>
  273. </executions>
  274. </plugin>
  275. </plugins>
  276. </build>
  277. <profiles>
  278. <profile>
  279. <id>deploy</id>
  280. <build>
  281. <plugins>
  282. <plugin>
  283. <artifactId>maven-jar-plugin</artifactId>
  284. <executions>
  285. <execution>
  286. <id>client</id>
  287. <goals><goal>jar</goal></goals>
  288. <phase>package</phase>
  289. <configuration>
  290. <classifier>client</classifier>
  291. <includes>
  292. <include>**/fegin/**</include>
  293. </includes>
  294. </configuration>
  295. </execution>
  296. </executions>
  297. </plugin>
  298. </plugins>
  299. </build>
  300. </profile>
  301. <profile>
  302. <id>dev</id>
  303. <build>
  304. <finalName>${project.artifactId}-dev</finalName>
  305. <plugins>
  306. <plugin>
  307. <groupId>org.springframework.boot</groupId>
  308. <artifactId>spring-boot-maven-plugin</artifactId>
  309. <executions>
  310. <execution>
  311. <goals>
  312. <goal>repackage</goal>
  313. </goals>
  314. </execution>
  315. </executions>
  316. </plugin>
  317. <plugin>
  318. <groupId>org.apache.maven.plugins</groupId>
  319. <artifactId>maven-compiler-plugin</artifactId>
  320. <version>3.8.1</version> <!-- 使用最新版本 -->
  321. <configuration>
  322. <source>21</source> <!-- 设置源代码的 JDK 版本 -->
  323. <target>21</target> <!-- 设置目标字节码的 JDK 版本 -->
  324. </configuration>
  325. </plugin>
  326. </plugins>
  327. </build>
  328. </profile>
  329. <profile>
  330. <id>test</id>
  331. <build>
  332. <finalName>${project.artifactId}-test</finalName>
  333. <plugins>
  334. <plugin>
  335. <groupId>org.apache.maven.plugins</groupId>
  336. <artifactId>maven-deploy-plugin</artifactId>
  337. <version>3.1.2</version>
  338. <configuration>
  339. <skip>false</skip>
  340. </configuration>
  341. </plugin>
  342. <plugin>
  343. <groupId>org.springframework.boot</groupId>
  344. <artifactId>spring-boot-maven-plugin</artifactId>
  345. <executions>
  346. <execution>
  347. <goals>
  348. <goal>repackage</goal>
  349. </goals>
  350. </execution>
  351. </executions>
  352. </plugin>
  353. </plugins>
  354. </build>
  355. </profile>
  356. <profile>
  357. <id>prod</id>
  358. <build>
  359. <finalName>${project.artifactId}-prod</finalName>
  360. <plugins>
  361. <plugin>
  362. <groupId>org.springframework.boot</groupId>
  363. <artifactId>spring-boot-maven-plugin</artifactId>
  364. <version>3.2.12</version>
  365. <configuration>
  366. <mainClass>com.hr.InterfacePlatformApplication</mainClass>
  367. </configuration>
  368. </plugin>
  369. <plugin>
  370. <groupId>org.apache.maven.plugins</groupId>
  371. <artifactId>maven-deploy-plugin</artifactId>
  372. <version>3.1.2</version>
  373. <configuration>
  374. <skip>false</skip>
  375. </configuration>
  376. </plugin>
  377. </plugins>
  378. </build>
  379. </profile>
  380. </profiles>
  381. <distributionManagement>
  382. <repository>
  383. <id>releases</id>
  384. <url>https://nexus.hrsk.com:8081/repository/maven-releases/</url>
  385. </repository>
  386. <snapshotRepository>
  387. <id>snapshots</id>
  388. <url>https://nexus.hrsk.com:8081/repository/maven-snapshots/</url>
  389. </snapshotRepository>
  390. </distributionManagement>
  391. </project>