pom.xml 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510
  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. </properties>
  68. <dependencyManagement>
  69. <dependencies>
  70. <dependency>
  71. <groupId>org.springframework.boot</groupId>
  72. <artifactId>spring-boot-dependencies</artifactId>
  73. <version>${spring-boot.version}</version>
  74. <type>pom</type>
  75. <scope>import</scope>
  76. </dependency>
  77. <!-- spring-cloud -->
  78. <dependency>
  79. <groupId>org.springframework.cloud</groupId>
  80. <artifactId>spring-cloud-dependencies</artifactId>
  81. <version>${spring-cloud.version}</version>
  82. <type>pom</type>
  83. <scope>import</scope>
  84. </dependency>
  85. <!-- spring-cloud-alibaba -->
  86. <dependency>
  87. <groupId>com.alibaba.cloud</groupId>
  88. <artifactId>spring-cloud-alibaba-dependencies</artifactId>
  89. <version>${spring-cloud-alibaba.version}</version>
  90. <type>pom</type>
  91. <scope>import</scope>
  92. <exclusions>
  93. <exclusion>
  94. <groupId>com.alibaba.nacos</groupId>
  95. <artifactId>nacos-client</artifactId>
  96. </exclusion>
  97. </exclusions>
  98. </dependency>
  99. <!-- common 的依赖配置-->
  100. <dependency>
  101. <groupId>com.sckw</groupId>
  102. <artifactId>sckw-common-bom</artifactId>
  103. <version>${project.basic.version}</version>
  104. <type>pom</type>
  105. <scope>import</scope>
  106. </dependency>
  107. <!-- modules 的依赖配置-->
  108. <dependency>
  109. <groupId>com.sckw</groupId>
  110. <artifactId>sckw-modules-bom</artifactId>
  111. <version>${project.basic.version}</version>
  112. <type>pom</type>
  113. <scope>import</scope>
  114. </dependency>
  115. <!-- apache dubbo -->
  116. <dependency>
  117. <groupId>org.apache.dubbo</groupId>
  118. <artifactId>dubbo-bom</artifactId>
  119. <version>${dubbo.version}</version>
  120. <type>pom</type>
  121. <scope>import</scope>
  122. <exclusions>
  123. <exclusion>
  124. <groupId>com.alibaba</groupId>
  125. <artifactId>hessian-lite</artifactId>
  126. </exclusion>
  127. </exclusions>
  128. </dependency>
  129. <!-- yaml/yml配置文件 -->
  130. <dependency>
  131. <groupId>org.yaml</groupId>
  132. <artifactId>snakeyaml</artifactId>
  133. <version>${snakeyaml.version}</version>
  134. <!--<scope>compile</scope>-->
  135. </dependency>
  136. <!--处理序列化问题-->
  137. <dependency>
  138. <groupId>com.caucho</groupId>
  139. <artifactId>hessian</artifactId>
  140. </dependency>
  141. <!--reids操作-->
  142. <dependency>
  143. <groupId>org.redisson</groupId>
  144. <artifactId>redisson-spring-boot-starter</artifactId>
  145. <version>${redisson.version}</version>
  146. </dependency>
  147. <!--alibaba fastjson-->
  148. <dependency>
  149. <groupId>com.alibaba</groupId>
  150. <artifactId>fastjson</artifactId>
  151. <version>${fastjson.version}</version>
  152. </dependency>
  153. <!--alibaba EasyExcel导入导出-->
  154. <dependency>
  155. <groupId>com.alibaba</groupId>
  156. <artifactId>easyexcel</artifactId>
  157. <version>${easyexcel.version}</version>
  158. </dependency>
  159. <!--cglib-->
  160. <dependency>
  161. <groupId>cglib</groupId>
  162. <artifactId>cglib</artifactId>
  163. <exclusions>
  164. <exclusion>
  165. <groupId>org.ow2.asm</groupId>
  166. <artifactId>asm</artifactId>
  167. </exclusion>
  168. </exclusions>
  169. <version>${cglib.version}</version>
  170. </dependency>
  171. <dependency>
  172. <groupId>commons-io</groupId>
  173. <artifactId>commons-io</artifactId>
  174. <version>${commons-io.version}</version>
  175. </dependency>
  176. <!--alibaba 短信-->
  177. <dependency>
  178. <groupId>com.alibaba.cloud</groupId>
  179. <artifactId>spring-cloud-alicloud-sms</artifactId>
  180. <version>${alicloud-sms.version}</version>
  181. </dependency>
  182. <!--alibaba oss-->
  183. <dependency>
  184. <groupId>com.alibaba.cloud</groupId>
  185. <artifactId>spring-cloud-starter-alicloud-oss</artifactId>
  186. <version>${oss.version}</version>
  187. </dependency>
  188. <!-- Sentinel Datasource Nacos 持久化存储-->
  189. <dependency>
  190. <groupId>com.alibaba.csp</groupId>
  191. <artifactId>sentinel-datasource-nacos</artifactId>
  192. <version>${sentinel-csp.version}</version>
  193. </dependency>
  194. <!--nacos-->
  195. <dependency>
  196. <groupId>com.alibaba.nacos</groupId>
  197. <artifactId>nacos-client</artifactId>
  198. <version>${nacos-client.version}</version>
  199. </dependency>
  200. <!-- 上面排除掉了springcloud默认seata版本,此处引入和seata-server版本对应的seata包-->
  201. <dependency>
  202. <groupId>io.seata</groupId>
  203. <artifactId>seata-spring-boot-starter</artifactId>
  204. <version>1.6.1</version>
  205. </dependency>
  206. <!--jdk9+ 以上需要手动添加 JAXB能够使用Jackson对JAXB注解-->
  207. <dependency>
  208. <groupId>javax.xml.bind</groupId>
  209. <artifactId>jaxb-api</artifactId>
  210. <version>2.3.1</version>
  211. </dependency>
  212. <!--hutool-->
  213. <dependency>
  214. <groupId>cn.hutool</groupId>
  215. <artifactId>hutool-http</artifactId>
  216. <version>${hutool.version}</version>
  217. </dependency>
  218. <dependency>
  219. <groupId>cn.hutool</groupId>
  220. <artifactId>hutool-extra</artifactId>
  221. <version>${hutool.version}</version>
  222. </dependency>
  223. <!--mybatis-plus 依赖-->
  224. <dependency>
  225. <groupId>com.baomidou</groupId>
  226. <artifactId>mybatis-plus-boot-starter</artifactId>
  227. <version>${mybatis-plus.version}</version>
  228. </dependency>
  229. <dependency>
  230. <groupId>com.baomidou</groupId>
  231. <artifactId>mybatis-plus-annotation</artifactId>
  232. <version>${mybatis-plus.version}</version>
  233. </dependency>
  234. <dependency>
  235. <groupId>com.baomidou</groupId>
  236. <artifactId>mybatis-plus-extension</artifactId>
  237. <version>${mybatis-plus.version}</version>
  238. </dependency>
  239. <!--多数据源-->
  240. <dependency>
  241. <groupId>com.baomidou</groupId>
  242. <artifactId>dynamic-datasource-spring-boot-starter</artifactId>
  243. <version>${dynamic-datasource.version}</version>
  244. </dependency>
  245. <!--ShardingSphere-JDBC-->
  246. <dependency>
  247. <groupId>org.apache.shardingsphere</groupId>
  248. <artifactId>shardingsphere-jdbc-core-spring-boot-starter</artifactId>
  249. <version>${latest.release.version}</version>
  250. </dependency>
  251. <!--分页-->
  252. <dependency>
  253. <groupId>com.github.pagehelper</groupId>
  254. <artifactId>pagehelper</artifactId>
  255. <version>${pagehelper.version}</version>
  256. </dependency>
  257. <dependency>
  258. <groupId>com.github.pagehelper</groupId>
  259. <artifactId>pagehelper-spring-boot-autoconfigure</artifactId>
  260. <version>${pagehelper-spring-boot-starter.version}</version>
  261. </dependency>
  262. <dependency>
  263. <groupId>com.github.pagehelper</groupId>
  264. <artifactId>pagehelper-spring-boot-starter</artifactId>
  265. <version>${pagehelper-spring-boot-starter.version}</version>
  266. </dependency>
  267. <!--junit-->
  268. <dependency>
  269. <groupId>junit</groupId>
  270. <artifactId>junit</artifactId>
  271. <version>${junit.version}</version>
  272. <scope>test</scope>
  273. </dependency>
  274. <!--Lombok-->
  275. <dependency>
  276. <groupId>org.projectlombok</groupId>
  277. <artifactId>lombok</artifactId>
  278. <version>1.18.26</version>
  279. <!--<scope>provided</scope>-->
  280. </dependency>
  281. <dependency>
  282. <groupId>org.apache.tomcat.embed</groupId>
  283. <artifactId>tomcat-embed-core</artifactId>
  284. <version>10.1.7</version>
  285. </dependency>
  286. <dependency>
  287. <groupId>org.springframework</groupId>
  288. <artifactId>spring-webmvc</artifactId>
  289. <version>${spring-version}</version>
  290. </dependency>
  291. <!--xxx-job-->
  292. <dependency>
  293. <groupId>com.xuxueli</groupId>
  294. <artifactId>xxl-job-core</artifactId>
  295. <version>${xxljob.version}</version>
  296. </dependency>
  297. <!--<dependency>
  298. <groupId>org.aspectj</groupId>
  299. <artifactId>aspectjweaver</artifactId>
  300. <version>1.9.19</version>
  301. </dependency>-->
  302. <dependency>
  303. <groupId>org.bouncycastle</groupId>
  304. <artifactId>bcprov-jdk18on</artifactId>
  305. <version>1.74</version>
  306. </dependency>
  307. <!--热部署-->
  308. <dependency>
  309. <groupId>org.springframework.boot</groupId>
  310. <artifactId>spring-boot-devtools</artifactId>
  311. <optional>true</optional>
  312. </dependency>
  313. </dependencies>
  314. </dependencyManagement>
  315. <profiles>
  316. <profile>
  317. <id>lfdc</id>
  318. <properties>
  319. <profiles.active>lfdc</profiles.active>
  320. <nacos.server>10.10.10.230:8848</nacos.server>
  321. <nacos.namespace>sckw_lfdc</nacos.namespace>
  322. </properties>
  323. </profile>
  324. <profile>
  325. <id>dev</id>
  326. <properties>
  327. <profiles.active>dev</profiles.active>
  328. <nacos.server>10.10.10.230:8848</nacos.server>
  329. <nacos.namespace>sckw-service-platform-dev</nacos.namespace>
  330. </properties>
  331. </profile>
  332. <!--测试环境-->
  333. <profile>
  334. <id>test</id>
  335. <properties>
  336. <profiles.active>test</profiles.active>
  337. <nacos.server>10.10.10.224:8848</nacos.server>
  338. <nacos.namespace>sckw-service-platform</nacos.namespace>
  339. </properties>
  340. </profile>
  341. <!--生产环境-->
  342. <profile>
  343. <id>prod</id>
  344. <properties>
  345. <profiles.active>prod</profiles.active>
  346. <nacos.server>172.17.0.4:8848</nacos.server>
  347. <nacos.namespace>sckw-service-platform</nacos.namespace>
  348. </properties>
  349. </profile>
  350. </profiles>
  351. <build>
  352. <pluginManagement>
  353. <plugins>
  354. <plugin>
  355. <groupId>org.apache.maven.plugins</groupId>
  356. <artifactId>maven-clean-plugin</artifactId>
  357. <version>${maven-clean-plugin.version}</version>
  358. </plugin>
  359. <plugin>
  360. <groupId>org.apache.maven.plugins</groupId>
  361. <artifactId>maven-compiler-plugin</artifactId>
  362. <version>${maven-compiler-plugin.version}</version>
  363. </plugin>
  364. <plugin>
  365. <groupId>org.apache.maven.plugins</groupId>
  366. <artifactId>maven-deploy-plugin</artifactId>
  367. <version>${maven-deploy-plugin.version}</version>
  368. </plugin>
  369. <plugin>
  370. <groupId>org.apache.maven.plugins</groupId>
  371. <artifactId>maven-install-plugin</artifactId>
  372. <version>${maven-install-plugin.version}</version>
  373. </plugin>
  374. <plugin>
  375. <groupId>org.apache.maven.plugins</groupId>
  376. <artifactId>maven-jar-plugin</artifactId>
  377. <version>${maven-jar-plugin.version}</version>
  378. </plugin>
  379. <plugin>
  380. <groupId>org.apache.maven.plugins</groupId>
  381. <artifactId>maven-resources-plugin</artifactId>
  382. <version>${maven-resources-plugin.version}</version>
  383. <configuration>
  384. <propertiesEncoding>${project.build.sourceEncoding}</propertiesEncoding>
  385. <delimiters>
  386. <delimiter>@</delimiter>
  387. </delimiters>
  388. <useDefaultDelimiters>false</useDefaultDelimiters>
  389. </configuration>
  390. </plugin>
  391. <plugin>
  392. <groupId>org.springframework.boot</groupId>
  393. <artifactId>spring-boot-maven-plugin</artifactId>
  394. <version>${spring-boot.version}</version>
  395. </plugin>
  396. </plugins>
  397. </pluginManagement>
  398. <plugins>
  399. <!-- 统一 revision 版本 -->
  400. <plugin>
  401. <groupId>org.codehaus.mojo</groupId>
  402. <artifactId>flatten-maven-plugin</artifactId>
  403. <version>${flatten-maven-plugin.version}</version>
  404. <configuration>
  405. <flattenMode>resolveCiFriendliesOnly</flattenMode>
  406. <updatePomFile>true</updatePomFile>
  407. </configuration>
  408. <executions>
  409. <execution>
  410. <goals>
  411. <goal>flatten</goal>
  412. </goals>
  413. <id>flatten</id>
  414. <phase>process-resources</phase>
  415. </execution>
  416. <execution>
  417. <goals>
  418. <goal>clean</goal>
  419. </goals>
  420. <id>flatten.clean</id>
  421. <phase>clean</phase>
  422. </execution>
  423. </executions>
  424. </plugin>
  425. <plugin>
  426. <groupId>org.apache.maven.plugins</groupId>
  427. <artifactId>maven-clean-plugin</artifactId>
  428. </plugin>
  429. <plugin>
  430. <groupId>org.apache.maven.plugins</groupId>
  431. <artifactId>maven-deploy-plugin</artifactId>
  432. </plugin>
  433. <plugin>
  434. <groupId>org.apache.maven.plugins</groupId>
  435. <artifactId>maven-install-plugin</artifactId>
  436. </plugin>
  437. <plugin>
  438. <groupId>org.apache.maven.plugins</groupId>
  439. <artifactId>maven-compiler-plugin</artifactId>
  440. <configuration>
  441. <source>17</source>
  442. <target>17</target>
  443. <encoding>UTF-8</encoding>
  444. </configuration>
  445. </plugin>
  446. </plugins>
  447. <resources>
  448. <resource>
  449. <directory>src/main/resources</directory>
  450. <!-- 关闭过滤 -->
  451. <filtering>false</filtering>
  452. <includes>
  453. <include>**/*</include>
  454. </includes>
  455. </resource>
  456. <resource>
  457. <directory>src/main/resources</directory>
  458. <!-- 启用过滤 即该资源中的变量将会被过滤器中的值替换 -->
  459. <filtering>true</filtering>
  460. <!--资源-->
  461. <includes>
  462. <include>**/*.properties</include>
  463. <include>**/*.yml</include>
  464. </includes>
  465. </resource>
  466. </resources>
  467. </build>
  468. </project>