pom.xml 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548
  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. <groupId>com.sckw</groupId>
  7. <artifactId>sckw-service-platform</artifactId>
  8. <version>1.0.0</version>
  9. <name>sckw-service-platform</name>
  10. <url>http://git.sckaiwu.cn/17358629955/sckw-service-platform.git</url>
  11. <description>sckw-service-platform微服务系统</description>
  12. <modules>
  13. <module>sckw-modules</module>
  14. <module>sckw-common</module>
  15. <module>sckw-modules-api</module>
  16. <module>sckw-auth</module>
  17. <module>sckw-gateway</module>
  18. </modules>
  19. <packaging>pom</packaging>
  20. <properties>
  21. <maven.compiler.source>17</maven.compiler.source>
  22. <maven.compiler.target>17</maven.compiler.target>
  23. <project.api.version>1.1.0</project.api.version>
  24. <!--更新模块-->
  25. <upgrade.version>1.1.0</upgrade.version>
  26. <!--基础模块-->
  27. <basic.version>1.0.0</basic.version>
  28. <project.basic.version>1.0.0</project.basic.version>
  29. <flatten-maven-plugin.version>1.5.0</flatten-maven-plugin.version>
  30. <maven.compiler.source>17</maven.compiler.source>
  31. <maven.compiler.target>17</maven.compiler.target>
  32. <maven.compiler.compilerVersion>17</maven.compiler.compilerVersion>
  33. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  34. <spring-version>6.0.7</spring-version>
  35. <spring-boot.version>3.0.5</spring-boot.version>
  36. <spring-cloud.version>2022.0.0</spring-cloud.version>
  37. <spring-cloud-alibaba.version>2022.0.0.0-RC1</spring-cloud-alibaba.version>
  38. <!--不能使用3.2.0版本,会导致redisson里面的kryo版本降低值4.2.0-->
  39. <dubbo.version>3.2.2</dubbo.version>
  40. <snakeyaml.version>2.0</snakeyaml.version>
  41. <springdoc.version>2.1.0</springdoc.version>
  42. <redisson.version>3.21.3</redisson.version>
  43. <fastjson.version>2.0.38</fastjson.version>
  44. <easyexcel.version>3.3.2</easyexcel.version>
  45. <cglib.version>3.3.0</cglib.version>
  46. <commons-io.version>2.11.0</commons-io.version>
  47. <alicloud-sms.version>2.2.0.RELEASE</alicloud-sms.version>
  48. <oss.version>2.2.0.RELEASE</oss.version>
  49. <sentinel-csp.version>1.8.6</sentinel-csp.version>
  50. <nacos-client.version>2.2.1</nacos-client.version>
  51. <hutool.version>5.8.18</hutool.version>
  52. <mybatis-plus.version>3.5.3.1</mybatis-plus.version>
  53. <dynamic-datasource.version>3.6.1</dynamic-datasource.version>
  54. <latest.release.version>5.2.0</latest.release.version>
  55. <pagehelper.version>5.3.2</pagehelper.version>
  56. <pagehelper-spring-boot-starter.version>1.4.7</pagehelper-spring-boot-starter.version>
  57. <junit.version>4.13.2</junit.version>
  58. <xxljob.version>2.4.0</xxljob.version>
  59. <project.version>1.0.0</project.version>
  60. <!--maven插件版本声明-->
  61. <maven-clean-plugin.version>3.2.0</maven-clean-plugin.version>
  62. <maven-compiler-plugin.version>3.10.1</maven-compiler-plugin.version>
  63. <maven-jar-plugin.version>3.3.0</maven-jar-plugin.version>
  64. <maven-resources-plugin.version>3.3.0</maven-resources-plugin.version>
  65. <maven-install-plugin.version>3.0.1</maven-install-plugin.version>
  66. <maven-deploy-plugin.version>3.0.0</maven-deploy-plugin.version>
  67. <maven-openapi-ui.version>1.7.0</maven-openapi-ui.version>
  68. </properties>
  69. <dependencyManagement>
  70. <dependencies>
  71. <dependency>
  72. <groupId>org.springframework.boot</groupId>
  73. <artifactId>spring-boot-dependencies</artifactId>
  74. <version>${spring-boot.version}</version>
  75. <type>pom</type>
  76. <scope>import</scope>
  77. </dependency>
  78. <!-- spring-cloud -->
  79. <dependency>
  80. <groupId>org.springframework.cloud</groupId>
  81. <artifactId>spring-cloud-dependencies</artifactId>
  82. <version>${spring-cloud.version}</version>
  83. <type>pom</type>
  84. <scope>import</scope>
  85. </dependency>
  86. <!-- spring-cloud-alibaba -->
  87. <dependency>
  88. <groupId>com.alibaba.cloud</groupId>
  89. <artifactId>spring-cloud-alibaba-dependencies</artifactId>
  90. <version>${spring-cloud-alibaba.version}</version>
  91. <type>pom</type>
  92. <scope>import</scope>
  93. <exclusions>
  94. <exclusion>
  95. <groupId>com.alibaba.nacos</groupId>
  96. <artifactId>nacos-client</artifactId>
  97. </exclusion>
  98. </exclusions>
  99. </dependency>
  100. <!-- common 的依赖配置-->
  101. <dependency>
  102. <groupId>com.sckw</groupId>
  103. <artifactId>sckw-common-bom</artifactId>
  104. <version>${project.basic.version}</version>
  105. <type>pom</type>
  106. <scope>import</scope>
  107. </dependency>
  108. <!-- modules 的依赖配置-->
  109. <dependency>
  110. <groupId>com.sckw</groupId>
  111. <artifactId>sckw-modules-bom</artifactId>
  112. <version>${project.basic.version}</version>
  113. <type>pom</type>
  114. <scope>import</scope>
  115. </dependency>
  116. <!-- apache dubbo -->
  117. <dependency>
  118. <groupId>org.apache.dubbo</groupId>
  119. <artifactId>dubbo-bom</artifactId>
  120. <version>${dubbo.version}</version>
  121. <type>pom</type>
  122. <scope>import</scope>
  123. <exclusions>
  124. <exclusion>
  125. <groupId>com.alibaba</groupId>
  126. <artifactId>hessian-lite</artifactId>
  127. </exclusion>
  128. </exclusions>
  129. </dependency>
  130. <!-- yaml/yml配置文件 -->
  131. <dependency>
  132. <groupId>org.yaml</groupId>
  133. <artifactId>snakeyaml</artifactId>
  134. <version>${snakeyaml.version}</version>
  135. <!--<scope>compile</scope>-->
  136. </dependency>
  137. <!--处理序列化问题-->
  138. <dependency>
  139. <groupId>com.caucho</groupId>
  140. <artifactId>hessian</artifactId>
  141. </dependency>
  142. <!--reids操作-->
  143. <dependency>
  144. <groupId>org.redisson</groupId>
  145. <artifactId>redisson-spring-boot-starter</artifactId>
  146. <version>${redisson.version}</version>
  147. </dependency>
  148. <!--alibaba fastjson-->
  149. <dependency>
  150. <groupId>com.alibaba</groupId>
  151. <artifactId>fastjson</artifactId>
  152. <version>${fastjson.version}</version>
  153. </dependency>
  154. <!--alibaba EasyExcel导入导出-->
  155. <dependency>
  156. <groupId>com.alibaba</groupId>
  157. <artifactId>easyexcel</artifactId>
  158. <version>${easyexcel.version}</version>
  159. </dependency>
  160. <!--cglib-->
  161. <dependency>
  162. <groupId>cglib</groupId>
  163. <artifactId>cglib</artifactId>
  164. <exclusions>
  165. <exclusion>
  166. <groupId>org.ow2.asm</groupId>
  167. <artifactId>asm</artifactId>
  168. </exclusion>
  169. </exclusions>
  170. <version>${cglib.version}</version>
  171. </dependency>
  172. <dependency>
  173. <groupId>commons-io</groupId>
  174. <artifactId>commons-io</artifactId>
  175. <version>${commons-io.version}</version>
  176. </dependency>
  177. <!--alibaba 短信-->
  178. <dependency>
  179. <groupId>com.alibaba.cloud</groupId>
  180. <artifactId>spring-cloud-alicloud-sms</artifactId>
  181. <version>${alicloud-sms.version}</version>
  182. </dependency>
  183. <!--alibaba oss-->
  184. <dependency>
  185. <groupId>com.alibaba.cloud</groupId>
  186. <artifactId>spring-cloud-starter-alicloud-oss</artifactId>
  187. <version>${oss.version}</version>
  188. </dependency>
  189. <!-- Sentinel Datasource Nacos 持久化存储-->
  190. <dependency>
  191. <groupId>com.alibaba.csp</groupId>
  192. <artifactId>sentinel-datasource-nacos</artifactId>
  193. <version>${sentinel-csp.version}</version>
  194. </dependency>
  195. <!--nacos-->
  196. <dependency>
  197. <groupId>com.alibaba.nacos</groupId>
  198. <artifactId>nacos-client</artifactId>
  199. <version>${nacos-client.version}</version>
  200. </dependency>
  201. <!-- 上面排除掉了springcloud默认seata版本,此处引入和seata-server版本对应的seata包-->
  202. <dependency>
  203. <groupId>io.seata</groupId>
  204. <artifactId>seata-spring-boot-starter</artifactId>
  205. <version>1.6.1</version>
  206. </dependency>
  207. <!--jdk9+ 以上需要手动添加 JAXB能够使用Jackson对JAXB注解-->
  208. <dependency>
  209. <groupId>javax.xml.bind</groupId>
  210. <artifactId>jaxb-api</artifactId>
  211. <version>2.3.1</version>
  212. </dependency>
  213. <!--hutool-->
  214. <dependency>
  215. <groupId>cn.hutool</groupId>
  216. <artifactId>hutool-http</artifactId>
  217. <version>${hutool.version}</version>
  218. </dependency>
  219. <dependency>
  220. <groupId>cn.hutool</groupId>
  221. <artifactId>hutool-extra</artifactId>
  222. <version>${hutool.version}</version>
  223. </dependency>
  224. <!--mybatis-plus 依赖-->
  225. <dependency>
  226. <groupId>com.baomidou</groupId>
  227. <artifactId>mybatis-plus-boot-starter</artifactId>
  228. <version>${mybatis-plus.version}</version>
  229. </dependency>
  230. <dependency>
  231. <groupId>com.baomidou</groupId>
  232. <artifactId>mybatis-plus-annotation</artifactId>
  233. <version>${mybatis-plus.version}</version>
  234. </dependency>
  235. <dependency>
  236. <groupId>com.baomidou</groupId>
  237. <artifactId>mybatis-plus-extension</artifactId>
  238. <version>${mybatis-plus.version}</version>
  239. </dependency>
  240. <!--多数据源-->
  241. <dependency>
  242. <groupId>com.baomidou</groupId>
  243. <artifactId>dynamic-datasource-spring-boot-starter</artifactId>
  244. <version>${dynamic-datasource.version}</version>
  245. </dependency>
  246. <!--ShardingSphere-JDBC-->
  247. <dependency>
  248. <groupId>org.apache.shardingsphere</groupId>
  249. <artifactId>shardingsphere-jdbc-core-spring-boot-starter</artifactId>
  250. <version>${latest.release.version}</version>
  251. </dependency>
  252. <!--分页-->
  253. <dependency>
  254. <groupId>com.github.pagehelper</groupId>
  255. <artifactId>pagehelper</artifactId>
  256. <version>${pagehelper.version}</version>
  257. </dependency>
  258. <dependency>
  259. <groupId>com.github.pagehelper</groupId>
  260. <artifactId>pagehelper-spring-boot-autoconfigure</artifactId>
  261. <version>${pagehelper-spring-boot-starter.version}</version>
  262. </dependency>
  263. <dependency>
  264. <groupId>com.github.pagehelper</groupId>
  265. <artifactId>pagehelper-spring-boot-starter</artifactId>
  266. <version>${pagehelper-spring-boot-starter.version}</version>
  267. </dependency>
  268. <!--junit-->
  269. <dependency>
  270. <groupId>junit</groupId>
  271. <artifactId>junit</artifactId>
  272. <version>${junit.version}</version>
  273. <scope>test</scope>
  274. </dependency>
  275. <!--Lombok-->
  276. <dependency>
  277. <groupId>org.projectlombok</groupId>
  278. <artifactId>lombok</artifactId>
  279. <version>1.18.26</version>
  280. <!--<scope>provided</scope>-->
  281. </dependency>
  282. <dependency>
  283. <groupId>org.apache.tomcat.embed</groupId>
  284. <artifactId>tomcat-embed-core</artifactId>
  285. <version>10.1.7</version>
  286. </dependency>
  287. <dependency>
  288. <groupId>org.springframework</groupId>
  289. <artifactId>spring-webmvc</artifactId>
  290. <version>${spring-version}</version>
  291. </dependency>
  292. <!--xxx-job-->
  293. <dependency>
  294. <groupId>com.xuxueli</groupId>
  295. <artifactId>xxl-job-core</artifactId>
  296. <version>${xxljob.version}</version>
  297. </dependency>
  298. <!--<dependency>
  299. <groupId>org.aspectj</groupId>
  300. <artifactId>aspectjweaver</artifactId>
  301. <version>1.9.19</version>
  302. </dependency>-->
  303. <dependency>
  304. <groupId>org.bouncycastle</groupId>
  305. <artifactId>bcprov-jdk18on</artifactId>
  306. <version>1.74</version>
  307. </dependency>
  308. <!--热部署-->
  309. <dependency>
  310. <groupId>org.springframework.boot</groupId>
  311. <artifactId>spring-boot-devtools</artifactId>
  312. <optional>true</optional>
  313. </dependency>
  314. <!-- <dependency>-->
  315. <!-- <groupId>org.springdoc</groupId>-->
  316. <!-- <artifactId>springdoc-openapi-ui</artifactId>-->
  317. <!-- <version>${maven-openapi-ui.version}</version>-->
  318. <!-- </dependency>-->
  319. <dependency>
  320. <groupId>org.springdoc</groupId>
  321. <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
  322. <version>2.1.0</version>
  323. </dependency>
  324. <dependency>
  325. <groupId>com.baomidou</groupId>
  326. <artifactId>dynamic-datasource-spring-boot3-starter</artifactId>
  327. <version>4.2.0</version>
  328. </dependency>
  329. </dependencies>
  330. </dependencyManagement>
  331. <profiles>
  332. <profile>
  333. <id>cxf</id>
  334. <properties>
  335. <profiles.active>cxf</profiles.active>
  336. <nacos.server>10.10.10.224:8848</nacos.server>
  337. <nacos.namespace>sckw-ng-service-platform-cxf</nacos.namespace>
  338. </properties>
  339. </profile>
  340. <profile>
  341. <id>dev</id>
  342. <properties>
  343. <profiles.active>dev</profiles.active>
  344. <nacos.server>10.10.10.224:8848</nacos.server>
  345. <nacos.namespace>sckw-ng-service-platform-dev</nacos.namespace>
  346. </properties>
  347. </profile>
  348. <!--测试环境-->
  349. <profile>
  350. <id>test</id>
  351. <!-- <activation>-->
  352. <!-- <activeByDefault>true</activeByDefault>-->
  353. <!-- </activation>-->
  354. <properties>
  355. <profiles.active>test</profiles.active>
  356. <nacos.server>10.10.10.224:8848</nacos.server>
  357. <nacos.namespace>sckw-ng-service-platform</nacos.namespace>
  358. </properties>
  359. </profile>
  360. <!--生产环境-->
  361. <profile>
  362. <id>prod</id>
  363. <properties>
  364. <profiles.active>prod</profiles.active>
  365. <nacos.server>172.17.0.4:8848</nacos.server>
  366. <nacos.namespace>sckw-ng-service-platform</nacos.namespace>
  367. </properties>
  368. </profile>
  369. </profiles>
  370. <build>
  371. <pluginManagement>
  372. <plugins>
  373. <plugin>
  374. <groupId>org.apache.maven.plugins</groupId>
  375. <artifactId>maven-clean-plugin</artifactId>
  376. <version>${maven-clean-plugin.version}</version>
  377. </plugin>
  378. <plugin>
  379. <groupId>org.apache.maven.plugins</groupId>
  380. <artifactId>maven-compiler-plugin</artifactId>
  381. <version>${maven-compiler-plugin.version}</version>
  382. </plugin>
  383. <plugin>
  384. <groupId>org.apache.maven.plugins</groupId>
  385. <artifactId>maven-deploy-plugin</artifactId>
  386. <version>${maven-deploy-plugin.version}</version>
  387. </plugin>
  388. <plugin>
  389. <groupId>org.apache.maven.plugins</groupId>
  390. <artifactId>maven-install-plugin</artifactId>
  391. <version>${maven-install-plugin.version}</version>
  392. </plugin>
  393. <plugin>
  394. <groupId>org.apache.maven.plugins</groupId>
  395. <artifactId>maven-jar-plugin</artifactId>
  396. <version>${maven-jar-plugin.version}</version>
  397. </plugin>
  398. <plugin>
  399. <groupId>org.apache.maven.plugins</groupId>
  400. <artifactId>maven-resources-plugin</artifactId>
  401. <version>${maven-resources-plugin.version}</version>
  402. <configuration>
  403. <propertiesEncoding>${project.build.sourceEncoding}</propertiesEncoding>
  404. <delimiters>
  405. <delimiter>@</delimiter>
  406. </delimiters>
  407. <useDefaultDelimiters>false</useDefaultDelimiters>
  408. </configuration>
  409. </plugin>
  410. <plugin>
  411. <groupId>org.springframework.boot</groupId>
  412. <artifactId>spring-boot-maven-plugin</artifactId>
  413. <version>${spring-boot.version}</version>
  414. </plugin>
  415. </plugins>
  416. </pluginManagement>
  417. <plugins>
  418. <!-- 统一 revision 版本 -->
  419. <plugin>
  420. <groupId>org.codehaus.mojo</groupId>
  421. <artifactId>flatten-maven-plugin</artifactId>
  422. <version>${flatten-maven-plugin.version}</version>
  423. <configuration>
  424. <flattenMode>resolveCiFriendliesOnly</flattenMode>
  425. <updatePomFile>true</updatePomFile>
  426. </configuration>
  427. <executions>
  428. <execution>
  429. <goals>
  430. <goal>flatten</goal>
  431. </goals>
  432. <id>flatten</id>
  433. <phase>process-resources</phase>
  434. </execution>
  435. <execution>
  436. <goals>
  437. <goal>clean</goal>
  438. </goals>
  439. <id>flatten.clean</id>
  440. <phase>clean</phase>
  441. </execution>
  442. </executions>
  443. </plugin>
  444. <plugin>
  445. <groupId>org.apache.maven.plugins</groupId>
  446. <artifactId>maven-clean-plugin</artifactId>
  447. </plugin>
  448. <plugin>
  449. <groupId>org.apache.maven.plugins</groupId>
  450. <artifactId>maven-deploy-plugin</artifactId>
  451. </plugin>
  452. <plugin>
  453. <groupId>org.apache.maven.plugins</groupId>
  454. <artifactId>maven-install-plugin</artifactId>
  455. </plugin>
  456. <!-- 其他插件 -->
  457. <plugin>
  458. <groupId>org.springframework.boot</groupId>
  459. <artifactId>spring-boot-maven-plugin</artifactId>
  460. <configuration>
  461. <jvmArguments>--enable-native-access=ALL-UNNAMED</jvmArguments>
  462. </configuration>
  463. </plugin>
  464. <plugin>
  465. <groupId>org.apache.maven.plugins</groupId>
  466. <artifactId>maven-compiler-plugin</artifactId>
  467. <version>3.10.1</version>
  468. <configuration>
  469. <source>17</source>
  470. <target>17</target>
  471. <encoding>UTF-8</encoding>
  472. <annotationProcessorPaths>
  473. <path>
  474. <groupId>org.projectlombok</groupId>
  475. <artifactId>lombok</artifactId>
  476. <version>1.18.38</version>
  477. </path>
  478. </annotationProcessorPaths>
  479. </configuration>
  480. </plugin>
  481. </plugins>
  482. <resources>
  483. <resource>
  484. <directory>src/main/resources</directory>
  485. <!-- 关闭过滤 -->
  486. <filtering>false</filtering>
  487. <includes>
  488. <include>**/*</include>
  489. </includes>
  490. </resource>
  491. <resource>
  492. <directory>src/main/resources</directory>
  493. <!-- 启用过滤 即该资源中的变量将会被过滤器中的值替换 -->
  494. <filtering>true</filtering>
  495. <!--资源-->
  496. <includes>
  497. <include>**/*.properties</include>
  498. <include>**/*.yml</include>
  499. </includes>
  500. </resource>
  501. </resources>
  502. </build>
  503. </project>