pom.xml 18 KB

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